ThreadState.bind

Binds any state that should be made accessible during a thread's execution. This should typically always be called in a {@code try/finally} block paired with the {@link #restore} call to guarantee that the thread is cleanly restored back to its original state. For example: <pre> ThreadState state = //acquire or instantiate as necessary <b>try { state.bind(); doSomething(); //execute any logic downstream logic that might need to access the state } </b> finally { state.restore(); } </pre>

interface ThreadState
void
bind
()

Meta