public final class AsyncContextInMemoryScopeManager extends java.lang.Object implements InMemoryScopeManager
InMemoryScopeManager that uses AsyncContext as the backing storage.| Modifier and Type | Field and Description |
|---|---|
static AsyncContextInMemoryScopeManager |
SCOPE_MANAGER |
| Modifier and Type | Method and Description |
|---|---|
InMemoryScope |
activate(InMemorySpan span,
boolean finishSpanOnClose)
Same as
InMemoryScopeManager.activate(Span, boolean) but the span must be of type InMemorySpan. |
InMemoryScope |
active() |
InMemoryScope |
currentScope()
Get the currently
active() InMemoryScope or maybe also the current InMemoryScope for
which Scope.close() was previously called. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivatepublic static final AsyncContextInMemoryScopeManager SCOPE_MANAGER
public InMemoryScope activate(InMemorySpan span, boolean finishSpanOnClose)
InMemoryScopeManagerInMemoryScopeManager.activate(Span, boolean) but the span must be of type InMemorySpan.activate in interface InMemoryScopeManagerspan - the InMemorySpan to active.finishSpanOnClose - true to call Span.finish() when Scope.close() is
called.InMemoryScope that has been activated.@Nullable public InMemoryScope active()
active in interface io.opentracing.ScopeManageractive in interface InMemoryScopeManager@Nullable public InMemoryScope currentScope()
active() InMemoryScope or maybe also the current InMemoryScope for
which Scope.close() was previously called.active() InMemoryScope or maybe also the current InMemoryScope for
which Scope.close() was previously called.