Package net.officefloor.frame.api.team
Interface ThreadLocalAwareTeam
-
- All Superinterfaces:
Team
public interface ThreadLocalAwareTeam extends Team
Enables a
Teamto execute theJobwith theThreadinvoking theProcessState.An example use is for embedding
OfficeFloorwithin an Application Server and associating theThreadinvoking theProcessStateforThreadLocalinstances of the Application Server.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisThreadLocalAware()Indicates ifThreadLocalAwareTeam.voidsetThreadLocalAwareness(ThreadLocalAwareContext context)Sets theThreadLocalAwareContextfor theTeam.-
Methods inherited from interface net.officefloor.frame.api.team.Team
assignJob, startWorking, stopWorking
-
-
-
-
Method Detail
-
isThreadLocalAware
default boolean isThreadLocalAware()
Indicates if
ThreadLocalAwareTeam.Allows for implementing the interface without being thread-local aware.
- Returns:
trueifThreadLocalAwareTeam.
-
setThreadLocalAwareness
void setThreadLocalAwareness(ThreadLocalAwareContext context)
Sets theThreadLocalAwareContextfor theTeam.- Parameters:
context-ThreadLocalAwareContextfor theTeam.
-
-