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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceNonThrowingCloseable
- Specified by:
close
in interfaceScope
-