Class ThreadMetaDataImpl
java.lang.Object
net.officefloor.frame.impl.execute.thread.ThreadMetaDataImpl
- All Implemented Interfaces:
ThreadMetaData
ThreadMetaData implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionThreadMetaDataImpl(ManagedObjectMetaData<?>[] managedObjectMetaData, GovernanceMetaData<?, ?>[] governanceMetaData, int maximumFunctionChainLength, ThreadSynchroniserFactory[] threadSynchronisers, EscalationProcedure officeEscalationProcedure, EscalationFlow officeFloorEscalation) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionGovernanceMetaData<?,?>[] intObtains the maximumFunctionStatechain length for thisThreadState.Obtains theEscalationProcedurefor theOffice.Obtains the catch allEscalationFlowfor theOfficeFloor.Obtains theThreadSynchroniserFactoryinstances.
-
Constructor Details
-
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 Details
-
getManagedObjectMetaData
Description copied from interface:ThreadMetaData- Specified by:
getManagedObjectMetaDatain interfaceThreadMetaData- Returns:
ManagedObjectMetaDataof theManagedObjectinstances bound to theThreadState.
-
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
Description copied from interface:ThreadMetaDataObtains theThreadSynchroniserFactoryinstances.- Specified by:
getThreadSynchronisersin interfaceThreadMetaData- Returns:
ThreadSynchroniserFactoryinstances.
-
getOfficeEscalationProcedure
Description copied from interface:ThreadMetaDataObtains theEscalationProcedurefor theOffice.- Specified by:
getOfficeEscalationProcedurein interfaceThreadMetaData- Returns:
EscalationProcedurefor theOffice.
-
getOfficeFloorEscalation
Description copied from interface:ThreadMetaDataObtains the catch allEscalationFlowfor theOfficeFloor.- Specified by:
getOfficeFloorEscalationin interfaceThreadMetaData- Returns:
- Catch all
EscalationFlowfor theOfficeFloor.
-