public class ClientWarn extends java.lang.Object implements ExecutorLocal<ClientWarn.State>
Modifier and Type | Class and Description |
---|---|
static class |
ClientWarn.State |
Modifier and Type | Field and Description |
---|---|
static ClientWarn |
instance |
all
Modifier and Type | Method and Description |
---|---|
void |
captureWarnings() |
ClientWarn.State |
get()
This is called when scheduling the task, and also before calling
ExecutorLocal#set(T) when running on a
executor thread. |
java.util.List<java.lang.String> |
getWarnings() |
void |
resetWarnings() |
void |
set(ClientWarn.State value)
Before a task has been run, this will be called with the value from the thread that scheduled the task, and after
the task is finished, the value that was previously retrieved from this thread is restored.
|
void |
warn(java.lang.String text) |
public static ClientWarn instance
public ClientWarn.State get()
ExecutorLocal
ExecutorLocal#set(T)
when running on a
executor thread.get
in interface ExecutorLocal<ClientWarn.State>
public void set(ClientWarn.State value)
ExecutorLocal
set
in interface ExecutorLocal<ClientWarn.State>
value
- Value to use for the executor local state; may be null.public void warn(java.lang.String text)
public void captureWarnings()
public java.util.List<java.lang.String> getWarnings()
public void resetWarnings()
Copyright © 2016 The Apache Software Foundation