Interface SupplierThreadLocal<T>
-
- All Superinterfaces:
java.util.function.Supplier<T>
- All Known Implementing Classes:
SupplierThreadLocalTypeImpl.SupplierThreadLocalImpl
public interface SupplierThreadLocal<T> extends java.util.function.Supplier<T>ProvidesThreadLocalaccess to theManagedObjectobject instances for theSuppliedManagedObjectSource.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget()Obtains the object for the respectiveManagedObjectthis represents.
-
-
-
Method Detail
-
get
T get()
Obtains the object for the respective
ManagedObjectthis represents.This is only to be used within the
SuppliedManagedObjectSourceManagedObjectimplementations. Within this scope, the object will always be returned. Used outside this scope, the result is unpredictable.- Specified by:
getin interfacejava.util.function.Supplier<T>- Returns:
- Object from the
ManagedObject.
-
-