public final class NoopScope extends Object implements io.opencensus.common.Scope
Scope that does nothing when it is created or closed.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static io.opencensus.common.Scope |
getInstance()
Returns a
NoopScope. |
public static io.opencensus.common.Scope getInstance()
NoopScope.NoopScope.public void close()
close in interface io.opencensus.common.NonThrowingCloseableclose in interface io.opencensus.common.Scopeclose in interface Closeableclose in interface AutoCloseable