Package net.officefloor.frame.api.team
Interface Job
-
- All Superinterfaces:
java.lang.Runnable
public interface Job extends java.lang.Runnable
- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel(java.lang.Throwable cause)
ProcessIdentifier
getProcessIdentifier()
-
-
-
Method Detail
-
getProcessIdentifier
ProcessIdentifier getProcessIdentifier()
Obtains the
ProcessIdentifier
for theProcessState
containing thisJob
.This allows the
Team
executing theJob
to be aware of theProcessState
context in which theJob
is to be executed. This is particular relevant forTeamOversight
provided by theExecutive
.An example use would be embedding
OfficeFloor
within an Application Server and using thisProcessIdentifier
and aThreadLocalAwareTeam
to know the invokingThread
for interaction withThreadLocal
instances of the Application Server.- Returns:
- Identifier for the
ProcessState
containing thisJob
- See Also:
ThreadLocalAwareTeam
-
-