Package net.officefloor.frame.api.team
Interface ThreadLocalAwareTeam
- All Superinterfaces:
Team
Enables a Team to execute the Job with the Thread
invoking the ProcessState.
An example use is for embedding OfficeFloor within an Application
Server and associating the Thread invoking the ProcessState
for ThreadLocal instances of the Application Server.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanIndicates ifThreadLocalAwareTeam.voidSets theThreadLocalAwareContextfor theTeam.Methods inherited from interface net.officefloor.frame.api.team.Team
assignJob, startWorking, stopWorking
-
Method Details
-
isThreadLocalAware
default boolean isThreadLocalAware()Indicates if
ThreadLocalAwareTeam.Allows for implementing the interface without being thread-local aware.
- Returns:
trueifThreadLocalAwareTeam.
-
setThreadLocalAwareness
Sets theThreadLocalAwareContextfor theTeam.- Parameters:
context-ThreadLocalAwareContextfor theTeam.
-