Class ThreadMetaDataImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.thread.ThreadMetaDataImpl
-
- All Implemented Interfaces:
ThreadMetaData
public class ThreadMetaDataImpl extends java.lang.Object implements ThreadMetaData
ThreadMetaDataimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ThreadMetaDataImpl(ManagedObjectMetaData<?>[] managedObjectMetaData, GovernanceMetaData<?,?>[] governanceMetaData, int maximumFunctionChainLength, ThreadSynchroniserFactory[] threadSynchronisers, EscalationProcedure officeEscalationProcedure, EscalationFlow officeFloorEscalation)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GovernanceMetaData<?,?>[]getGovernanceMetaData()ManagedObjectMetaData<?>[]getManagedObjectMetaData()intgetMaximumFunctionChainLength()Obtains the maximumFunctionStatechain length for thisThreadState.EscalationProceduregetOfficeEscalationProcedure()Obtains theEscalationProcedurefor theOffice.EscalationFlowgetOfficeFloorEscalation()Obtains the catch allEscalationFlowfor theOfficeFloor.ThreadSynchroniserFactory[]getThreadSynchronisers()Obtains theThreadSynchroniserFactoryinstances.
-
-
-
Constructor Detail
-
ThreadMetaDataImpl
public ThreadMetaDataImpl(ManagedObjectMetaData<?>[] managedObjectMetaData, GovernanceMetaData<?,?>[] governanceMetaData, int maximumFunctionChainLength, ThreadSynchroniserFactory[] threadSynchronisers, EscalationProcedure officeEscalationProcedure, EscalationFlow officeFloorEscalation)
Initiate.- Parameters:
managedObjectMetaData-ManagedObjectMetaDatainstances.governanceMetaData-GovernanceMetaDatainstances.maximumFunctionChainLength- MaximumFunctionStatechain length.threadSynchronisers-ThreadSynchroniserFactoryinstances.officeEscalationProcedure-OfficeEscalationProcedure.officeFloorEscalation-OfficeFloorEscalationFlow.
-
-
Method Detail
-
getManagedObjectMetaData
public ManagedObjectMetaData<?>[] getManagedObjectMetaData()
Description copied from interface:ThreadMetaData- Specified by:
getManagedObjectMetaDatain interfaceThreadMetaData- Returns:
ManagedObjectMetaDataof theManagedObjectinstances bound to theThreadState.
-
getGovernanceMetaData
public GovernanceMetaData<?,?>[] getGovernanceMetaData()
Description copied from interface:ThreadMetaData- Specified by:
getGovernanceMetaDatain interfaceThreadMetaData- Returns:
GovernanceMetaDatainstances.
-
getMaximumFunctionChainLength
public int getMaximumFunctionChainLength()
Description copied from interface:ThreadMetaDataObtains the maximum
FunctionStatechain length for thisThreadState.Once the
FunctionStatechain has reached this length, it will be broken. (spawned in anotherThread). This avoidsStackOverflowErrorissues inFunctionStatechain being too large.- Specified by:
getMaximumFunctionChainLengthin interfaceThreadMetaData- Returns:
- Maximum
FunctionStatechain length for thisThreadState.
-
getThreadSynchronisers
public ThreadSynchroniserFactory[] getThreadSynchronisers()
Description copied from interface:ThreadMetaDataObtains theThreadSynchroniserFactoryinstances.- Specified by:
getThreadSynchronisersin interfaceThreadMetaData- Returns:
ThreadSynchroniserFactoryinstances.
-
getOfficeEscalationProcedure
public EscalationProcedure getOfficeEscalationProcedure()
Description copied from interface:ThreadMetaDataObtains theEscalationProcedurefor theOffice.- Specified by:
getOfficeEscalationProcedurein interfaceThreadMetaData- Returns:
EscalationProcedurefor theOffice.
-
getOfficeFloorEscalation
public EscalationFlow getOfficeFloorEscalation()
Description copied from interface:ThreadMetaDataObtains the catch allEscalationFlowfor theOfficeFloor.- Specified by:
getOfficeFloorEscalationin interfaceThreadMetaData- Returns:
- Catch all
EscalationFlowfor theOfficeFloor.
-
-