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
ThreadMetaData
implementation.- 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()
int
getMaximumFunctionChainLength()
Obtains the maximumFunctionState
chain length for thisThreadState
.EscalationProcedure
getOfficeEscalationProcedure()
Obtains theEscalationProcedure
for theOffice
.EscalationFlow
getOfficeFloorEscalation()
Obtains the catch allEscalationFlow
for theOfficeFloor
.ThreadSynchroniserFactory[]
getThreadSynchronisers()
Obtains theThreadSynchroniserFactory
instances.
-
-
-
Constructor Detail
-
ThreadMetaDataImpl
public ThreadMetaDataImpl(ManagedObjectMetaData<?>[] managedObjectMetaData, GovernanceMetaData<?,?>[] governanceMetaData, int maximumFunctionChainLength, ThreadSynchroniserFactory[] threadSynchronisers, EscalationProcedure officeEscalationProcedure, EscalationFlow officeFloorEscalation)
Initiate.- Parameters:
managedObjectMetaData
-ManagedObjectMetaData
instances.governanceMetaData
-GovernanceMetaData
instances.maximumFunctionChainLength
- MaximumFunctionState
chain length.threadSynchronisers
-ThreadSynchroniserFactory
instances.officeEscalationProcedure
-Office
EscalationProcedure
.officeFloorEscalation
-OfficeFloor
EscalationFlow
.
-
-
Method Detail
-
getManagedObjectMetaData
public ManagedObjectMetaData<?>[] getManagedObjectMetaData()
Description copied from interface:ThreadMetaData
- Specified by:
getManagedObjectMetaData
in interfaceThreadMetaData
- Returns:
ManagedObjectMetaData
of theManagedObject
instances bound to theThreadState
.
-
getGovernanceMetaData
public GovernanceMetaData<?,?>[] getGovernanceMetaData()
Description copied from interface:ThreadMetaData
- Specified by:
getGovernanceMetaData
in interfaceThreadMetaData
- Returns:
GovernanceMetaData
instances.
-
getMaximumFunctionChainLength
public int getMaximumFunctionChainLength()
Description copied from interface:ThreadMetaData
Obtains the maximum
FunctionState
chain length for thisThreadState
.Once the
FunctionState
chain has reached this length, it will be broken. (spawned in anotherThread
). This avoidsStackOverflowError
issues inFunctionState
chain being too large.- Specified by:
getMaximumFunctionChainLength
in interfaceThreadMetaData
- Returns:
- Maximum
FunctionState
chain length for thisThreadState
.
-
getThreadSynchronisers
public ThreadSynchroniserFactory[] getThreadSynchronisers()
Description copied from interface:ThreadMetaData
Obtains theThreadSynchroniserFactory
instances.- Specified by:
getThreadSynchronisers
in interfaceThreadMetaData
- Returns:
ThreadSynchroniserFactory
instances.
-
getOfficeEscalationProcedure
public EscalationProcedure getOfficeEscalationProcedure()
Description copied from interface:ThreadMetaData
Obtains theEscalationProcedure
for theOffice
.- Specified by:
getOfficeEscalationProcedure
in interfaceThreadMetaData
- Returns:
EscalationProcedure
for theOffice
.
-
getOfficeFloorEscalation
public EscalationFlow getOfficeFloorEscalation()
Description copied from interface:ThreadMetaData
Obtains the catch allEscalationFlow
for theOfficeFloor
.- Specified by:
getOfficeFloorEscalation
in interfaceThreadMetaData
- Returns:
- Catch all
EscalationFlow
for theOfficeFloor
.
-
-