Interface PerThreadValue<T>
-
public interface PerThreadValue<T>
Provides access to per-thread (and, by extension, per-request) data, managed by thePerthreadManager. A PerThreadValue stores a particular type of information.- Since:
- 5.2.0
- See Also:
PerthreadManager.createValue()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists()Is a value stored (even null)?Tget()Reads the current per-thread value, or returns null if no value has been stored.Tget(T defaultValue)Gets the current per-thread value if it exists (even if null), or the defaultValue if no value has been stored.Tset(T newValue)Sets the current per-thread value, then returns that value.
-