ThreadState.restore

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

interface ThreadState
void
restore
()

Meta