Package net.officefloor.frame.api.team
Interface ThreadLocalAwareTeam
-
- All Superinterfaces:
Team
public interface ThreadLocalAwareTeam extends Team
Enables a
Team
to execute theJob
with theThread
invoking theProcessState
.An example use is for embedding
OfficeFloor
within an Application Server and associating theThread
invoking theProcessState
forThreadLocal
instances of the Application Server.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isThreadLocalAware()
Indicates ifThreadLocalAwareTeam
.void
setThreadLocalAwareness(ThreadLocalAwareContext context)
Sets theThreadLocalAwareContext
for 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:
true
ifThreadLocalAwareTeam
.
-
setThreadLocalAwareness
void setThreadLocalAwareness(ThreadLocalAwareContext context)
Sets theThreadLocalAwareContext
for theTeam
.- Parameters:
context
-ThreadLocalAwareContext
for theTeam
.
-
-