Package io.opencensus.internal
Class NoopScope
java.lang.Object
io.opencensus.internal.NoopScope
- All Implemented Interfaces:
NonThrowingCloseable,Scope,Closeable,AutoCloseable
A
Scope that does nothing when it is created or closed.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoopScope
private NoopScope()
-
-
Method Details
-
getInstance
Returns aNoopScope.- Returns:
- a
NoopScope.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceNonThrowingCloseable- Specified by:
closein interfaceScope
-