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)ProcessIdentifiergetProcessIdentifier()
-
-
-
Method Detail
-
getProcessIdentifier
ProcessIdentifier getProcessIdentifier()
Obtains the
ProcessIdentifierfor theProcessStatecontaining thisJob.This allows the
Teamexecuting theJobto be aware of theProcessStatecontext in which theJobis to be executed. This is particular relevant forTeamOversightprovided by theExecutive.An example use would be embedding
OfficeFloorwithin an Application Server and using thisProcessIdentifierand aThreadLocalAwareTeamto know the invokingThreadfor interaction withThreadLocalinstances of the Application Server.- Returns:
- Identifier for the
ProcessStatecontaining thisJob - See Also:
ThreadLocalAwareTeam
-
-