public class ExecutorLocals extends java.lang.Object implements WithResources, Closeable
Modifier and Type | Class and Description |
---|---|
static class |
ExecutorLocals.Impl |
WithResources.None
Modifier and Type | Field and Description |
---|---|
ClientWarn.State |
clientWarnState |
TraceState |
traceState |
Modifier | Constructor and Description |
---|---|
protected |
ExecutorLocals(TraceState traceState,
ClientWarn.State clientWarnState) |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
void |
close() |
static ExecutorLocals |
create(TraceState traceState) |
static ExecutorLocals |
current() |
Closeable |
get()
Overwrite current locals, and return the previous ones
|
static WithResources |
propagate()
The
current() Locals, if any; otherwise WithResources.none() . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, and, isNoOp, none
public final TraceState traceState
public final ClientWarn.State clientWarnState
protected ExecutorLocals(TraceState traceState, ClientWarn.State clientWarnState)
public static ExecutorLocals current()
public static WithResources propagate()
current()
Locals, if any; otherwise WithResources.none()
.
Used to propagate current to other executors as a WithResources
.public static ExecutorLocals create(TraceState traceState)
public static void clear()
public Closeable get()
get
in interface WithResources
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2009-2022 The Apache Software Foundation