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)
java.lang.Object
getProcessIdentifier()
Obtains the identifier for theProcessState
containing thisJob
.
-
-
-
Method Detail
-
getProcessIdentifier
java.lang.Object getProcessIdentifier()
Obtains the identifier for the
ProcessState
containing thisJob
.This allows the
Team
executing theJob
to be aware of theProcessState
context in which theJob
is to be executed.An example use would be embedding
OfficeFloor
within an Application Server and using this identifier and aThreadLocalAwareTeam
to know the invokingThread
for interaction withThreadLocal
instances of the Application Server.- Returns:
- Identifier for the
ProcessState
containing thisJob
- See Also:
ThreadLocalAwareTeam
-
-