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 voidcancel(java.lang.Throwable cause)java.lang.ObjectgetProcessIdentifier()Obtains the identifier for theProcessStatecontaining thisJob.
-
-
-
Method Detail
-
getProcessIdentifier
java.lang.Object getProcessIdentifier()
Obtains the identifier for the
ProcessStatecontaining thisJob.This allows the
Teamexecuting theJobto be aware of theProcessStatecontext in which theJobis to be executed.An example use would be embedding
OfficeFloorwithin an Application Server and using this identifier and aThreadLocalAwareTeamto know the invokingThreadfor interaction withThreadLocalinstances of the Application Server.- Returns:
- Identifier for the
ProcessStatecontaining thisJob - See Also:
ThreadLocalAwareTeam
-
-