Uses of Interface
net.officefloor.frame.internal.structure.FunctionState
-
-
Uses of FunctionState in net.officefloor.frame.impl.execute.asset
Classes in net.officefloor.frame.impl.execute.asset that implement FunctionState Modifier and Type Class Description class
AssetManagerImpl
AssetManager
implementation.Methods in net.officefloor.frame.impl.execute.asset that return FunctionState Modifier and Type Method Description FunctionState
AssetLatchImpl. awaitOnAsset(FunctionState function)
FunctionState
AssetManagerImpl. execute(FunctionStateContext context)
Methods in net.officefloor.frame.impl.execute.asset with parameters of type FunctionState Modifier and Type Method Description FunctionState
AssetLatchImpl. awaitOnAsset(FunctionState function)
void
AssetLatchImpl. releaseFunctions(boolean isPermanent, FunctionState functionState)
-
Uses of FunctionState in net.officefloor.frame.impl.execute.flow
Methods in net.officefloor.frame.impl.execute.flow that return FunctionState Modifier and Type Method Description FunctionState
FlowImpl. cancel()
FunctionState
FlowImpl. createFunction(FunctionLogic logic)
FunctionState
FlowImpl. managedFunctionComplete(FunctionState function, java.lang.Throwable functionEscalation, EscalationCompletion escalationCompletion)
Methods in net.officefloor.frame.impl.execute.flow with parameters of type FunctionState Modifier and Type Method Description FunctionState
FlowImpl. managedFunctionComplete(FunctionState function, java.lang.Throwable functionEscalation, EscalationCompletion escalationCompletion)
-
Uses of FunctionState in net.officefloor.frame.impl.execute.function
Classes in net.officefloor.frame.impl.execute.function that implement FunctionState Modifier and Type Class Description class
AbstractDelegateFunctionState
AbstractFunctionState
that delegates functionality to a delegateFunctionState
.class
AbstractFunctionState
AbstractFunctionState
.class
LinkedListSetPromise<I,E>
class
ManagedFunctionContainerImpl<M extends ManagedFunctionLogicMetaData>
FunctionState
to execute aManagedFunctionLogic
.Fields in net.officefloor.frame.impl.execute.function declared as FunctionState Modifier and Type Field Description protected FunctionState
AbstractDelegateFunctionState. delegate
DelegateFunctionState
.Methods in net.officefloor.frame.impl.execute.function that return FunctionState Modifier and Type Method Description static <E extends LinkedListSetEntry<E,O>,O>
FunctionStateLinkedListSetPromise. all(LinkedListSet<E,O> linkedListSet, LinkedListSetPromise.Translate<E> translate)
Executes aFunctionState
for all entries of theLinkedListSet
.FunctionState
AbstractDelegateFunctionState. cancel()
FunctionState
ManagedFunctionContainerImpl. cancel()
FunctionState
AbstractDelegateFunctionState. execute(FunctionStateContext context)
FunctionState
LinkedListSetPromise. execute(FunctionStateContext context)
FunctionState
ManagedFunctionContainerImpl. execute(FunctionStateContext context)
FunctionState
SpawnThreadFunctionLogic. execute(Flow flow)
FunctionState
SynchroniseProcessStateFunctionLogic. execute(Flow flow)
FunctionState
AbstractDelegateFunctionState. handleEscalation(java.lang.Throwable escalation, EscalationCompletion completion)
FunctionState
ManagedFunctionContainerImpl. handleEscalation(java.lang.Throwable escalation, EscalationCompletion completion)
static <E extends LinkedListSetEntry<E,O>,O>
FunctionStateLinkedListSetPromise. purge(LinkedListSet<E,O> linkedListSet, LinkedListSetPromise.Translate<E> translate)
Purges theLinkedListSet
and executes aFunctionState
for each item.static FunctionState
Promise. then(FunctionState function, FunctionState thenFunction)
Execute theFunctionState
then theFunctionState
.FunctionState
LinkedListSetPromise.Translate. translate(E entry)
Translates the entry to aFunctionState
.Methods in net.officefloor.frame.impl.execute.function with parameters of type FunctionState Modifier and Type Method Description static FunctionState
Promise. then(FunctionState function, FunctionState thenFunction)
Execute theFunctionState
then theFunctionState
.Constructors in net.officefloor.frame.impl.execute.function with parameters of type FunctionState Constructor Description AbstractDelegateFunctionState(FunctionState delegate)
Instantiate.ManagedFunctionContainerImpl(FunctionState setupFunction, ManagedFunctionLogic managedFunctionLogic, ManagedFunctionBoundManagedObjects boundManagedObjects, ManagedObjectIndex[] requiredManagedObjects, boolean[] requiredGovernance, boolean isEnforceGovernance, M functionLogicMetaData, BlockState parallelOwner, Flow flow, boolean isUnloadManagedObjects)
Initiate. -
Uses of FunctionState in net.officefloor.frame.impl.execute.governance
Methods in net.officefloor.frame.impl.execute.governance that return FunctionState Modifier and Type Method Description FunctionState
GovernanceContainerImpl. deactivateGovernance()
-
Uses of FunctionState in net.officefloor.frame.impl.execute.job
Methods in net.officefloor.frame.impl.execute.job with parameters of type FunctionState Modifier and Type Method Description void
FunctionLoopImpl. delegateFunction(FunctionState function)
void
FunctionLoopImpl. executeFunction(FunctionState function)
-
Uses of FunctionState in net.officefloor.frame.impl.execute.managedobject
Methods in net.officefloor.frame.impl.execute.managedobject that return FunctionState Modifier and Type Method Description FunctionState
ManagedObjectContainerImpl. checkReady(ManagedObjectReadyCheck check)
FunctionState
ManagedObjectMetaDataImpl. checkReady(ManagedFunctionContainer managedFunction, ManagedObjectReadyCheck check, ManagedObjectContainer currentContainer)
FunctionState
ManagedObjectCleanupImpl. cleanup(FlowMetaData recycleFlowMetaData, java.lang.Class<?> objectType, ManagedObject managedObject, ManagedObjectPool managedObjectPool)
<E> FunctionState
ManagedObjectContainerImpl. extractExtension(ManagedObjectExtensionExtractor<E> extractor, E[] managedObjectExtensions, int extensionIndex, TeamManagement responsibleTeam)
FunctionState
ManagedObjectReadyCheckImpl. getLatchFunction()
FunctionState
ManagedObjectContainerImpl. loadManagedObject(ManagedFunctionContainer managedFunction)
FunctionState
ManagedObjectMetaDataImpl. recycle(ManagedObject managedObject, ManagedObjectCleanup cleanup)
FunctionState
ManagedObjectReadyCheckImpl. setNotReady()
FunctionState
ManagedObjectContainerImpl. unloadManagedObject()
FunctionState
ManagedObjectContainerImpl. unregisterGovernance(int governanceIndex)
Constructors in net.officefloor.frame.impl.execute.managedobject with parameters of type FunctionState Constructor Description ManagedObjectReadyCheckImpl(FunctionState latchFunction, ManagedFunctionContainer managedFunction)
Instantiate. -
Uses of FunctionState in net.officefloor.frame.impl.execute.office
Methods in net.officefloor.frame.impl.execute.office that return FunctionState Modifier and Type Method Description FunctionState
OfficeMetaDataImpl. createProcess(FlowMetaData flowMetaData, java.lang.Object parameter, FlowCallback callback, ThreadState callbackThreadState)
Constructor parameters in net.officefloor.frame.impl.execute.office with type arguments of type FunctionState Constructor Description StateManagerImpl(java.util.Map<java.lang.String,ManagedFunctionMetaData<?,?>> loadObjectMetaDatas, ThreadState threadState, MonitorClock monitorClock, java.util.function.Consumer<FunctionState> functionExecutor, java.lang.Runnable cleanUpState)
Instantiate. -
Uses of FunctionState in net.officefloor.frame.impl.execute.officefloor
Methods in net.officefloor.frame.impl.execute.officefloor with parameters of type FunctionState Modifier and Type Method Description void
ThreadLocalAwareExecutorImpl. runInContext(FunctionState function, FunctionLoop loop)
-
Uses of FunctionState in net.officefloor.frame.impl.execute.process
Methods in net.officefloor.frame.impl.execute.process that return FunctionState Modifier and Type Method Description FunctionState
ProcessStateImpl. spawnThreadState(ManagedFunctionMetaData<?,?> managedFunctionMetaData, java.lang.Object parameter, FlowCompletion completion, boolean isEscalationHandlingThreadState)
FunctionState
ProcessStateImpl. threadComplete(ThreadState thread, FunctionState threadCompletion)
Methods in net.officefloor.frame.impl.execute.process with parameters of type FunctionState Modifier and Type Method Description FunctionState
ProcessStateImpl. threadComplete(ThreadState thread, FunctionState threadCompletion)
-
Uses of FunctionState in net.officefloor.frame.impl.execute.profile
Classes in net.officefloor.frame.impl.execute.profile that implement FunctionState Modifier and Type Class Description class
ThreadProfilerImpl
ThreadProfiler
implementation.Methods in net.officefloor.frame.impl.execute.profile that return FunctionState Modifier and Type Method Description FunctionState
ThreadProfilerImpl. execute(FunctionStateContext context)
-
Uses of FunctionState in net.officefloor.frame.impl.execute.thread
Methods in net.officefloor.frame.impl.execute.thread that return FunctionState Modifier and Type Method Description FunctionState
ThreadStateImpl. flowComplete(Flow flow, java.lang.Throwable threadEscalation, EscalationCompletion escalationCompletion)
FunctionState
ThreadStateImpl. handleEscalation(java.lang.Throwable escalation, EscalationCompletion escalationCompletion)
FunctionState
ThreadStateImpl. registerThreadProfiler()
FunctionState
ThreadStateImpl. runWithin(FunctionState function)
FunctionState
ThreadStateImpl. then(FunctionState function, FunctionState thenFunction)
Methods in net.officefloor.frame.impl.execute.thread with parameters of type FunctionState Modifier and Type Method Description AvoidTeam
ThreadStateImpl. avoidTeam(FunctionState function, TeamManagement team)
FunctionState
ThreadStateImpl. runWithin(FunctionState function)
FunctionState
ThreadStateImpl. then(FunctionState function, FunctionState thenFunction)
-
Uses of FunctionState in net.officefloor.frame.internal.structure
Subinterfaces of FunctionState in net.officefloor.frame.internal.structure Modifier and Type Interface Description interface
AssetManager
AssetManager
to manageAsset
instances.interface
BlockState
Representative of blocks of code to be executed.interface
ManagedFunctionContainer
Container ofManagedFunctionLogic
.interface
RegisteredGovernance
RegisteredManagedObject
with theGovernance
.interface
ThreadProfiler
Profiler of theThreadState
.Methods in net.officefloor.frame.internal.structure that return FunctionState Modifier and Type Method Description FunctionState
AssetLatch. awaitOnAsset(FunctionState function)
Flags for theFunctionState
(and more specifically theThreadState
of theFunctionState
) to wait until theAsset
is ready.FunctionState
Flow. cancel()
Cancels thisFlow
.default FunctionState
FunctionState. cancel()
FunctionState
ManagedObjectContainer. checkReady(ManagedObjectReadyCheck check)
Creates aFunctionState
to check if theManagedObject
contained within thisManagedObjectContainer
is ready.FunctionState
ManagedObjectMetaData. checkReady(ManagedFunctionContainer managedFunction, ManagedObjectReadyCheck check, ManagedObjectContainer currentContainer)
Creates aFunctionState
to check if the dependencies of thisManagedObject
are ready.FunctionState
ManagedObjectCleanup. cleanup(FlowMetaData recycleFlowMetaData, java.lang.Class<?> objectType, ManagedObject managedObject, ManagedObjectPool managedObjectPool)
Creates the clean upFunctionState
.FunctionState
Flow. createFunction(FunctionLogic logic)
FunctionState
ThreadStateContext. createFunction(FunctionLogic logic, ThreadState fallbackThreadState)
FunctionState
OfficeMetaData. createProcess(FlowMetaData flowMetaData, java.lang.Object parameter, FlowCallback callback, ThreadState callbackThreadState)
Creates a newProcessState
.FunctionState
GovernanceContainer. deactivateGovernance()
Deactivates theGovernance
.FunctionState
GovernanceActivity. doActivity(GovernanceContext<F> context)
Undertakes theGovernance
activity.FunctionState
EscalationCompletion. escalationComplete()
Notifies the completion of theEscalation
handling.FunctionState
FunctionLogic. execute(Flow flow)
Executes the logic.FunctionState
FunctionState. execute(FunctionStateContext context)
Executes theFunctionState
.FunctionState
FunctionStateContext. executeDelegate(FunctionState delegate)
Wraps executing the delegateFunctionState
to enable breaking the delegate chain.FunctionState
ThreadStateContext. executeFunction(FunctionState function)
Executes theFunctionState
returning the nextFunctionState
to execute.<E> FunctionState
ManagedObjectContainer. extractExtension(ManagedObjectExtensionExtractor<E> extractor, E[] managedObjectExtensions, int extensionIndex, TeamManagement responsibleTeam)
Extracts theManagedObject
extension from theManagedObject
contained in thisManagedObjectContainer
.FunctionState
FlowCompletion. flowComplete(java.lang.Throwable escalation)
Obtains theFunctionState
to notify completion of theFlow
.FunctionState
ThreadState. flowComplete(Flow flow, java.lang.Throwable flowEscalation, EscalationCompletion completion)
Flags that the inputFlow
has completed.FunctionState
AvoidTeam. getFunctionState()
Obtains theFunctionState
to continue execution avoiding the specifiedTeam
.FunctionState
ManagedObjectReadyCheck. getLatchFunction()
Obtains theFunctionState
to use in anAssetLatch
if not ready.default FunctionState
FunctionState. handleEscalation(java.lang.Throwable escalation, EscalationCompletion completion)
HandlesEscalation
from theManagedFunction
.FunctionState
ThreadState. handleEscalation(java.lang.Throwable escalation, EscalationCompletion completion)
FunctionState
ManagedObjectContainer. loadManagedObject(ManagedFunctionContainer managedFunctionContainer)
Creates aFunctionState
to load theManagedObject
.FunctionState
Flow. managedFunctionComplete(FunctionState function, java.lang.Throwable functionEscalation, EscalationCompletion escalationCompletion)
Flags that the inputFunctionState
has completed.FunctionState
ManagedObjectMetaData. recycle(ManagedObject managedObject, ManagedObjectCleanup cleanupSequence)
Creates theFunctionState
for the recycling of theManagedObject
.FunctionState
ManagedFunctionInterest. registerInterest()
Registers interest in theManagedFunctionContainer
.FunctionState
ThreadState. registerThreadProfiler()
Obtains theFunctionState
to register theThreadProfiler
.FunctionState
ThreadState. runWithin(FunctionState function)
Runs theFunctionState
within thisThreadState
.FunctionState
ManagedObjectReadyCheck. setNotReady()
Flags that aManagedObject
or one of its dependencyManagedObject
instances is not ready.FunctionState
ProcessState. spawnThreadState(ManagedFunctionMetaData<?,?> managedFunctionMetaData, java.lang.Object parameter, FlowCompletion completion, boolean isEscalationHandlingThreadState)
Spawns a newThreadState
contained in thisProcessState
.FunctionState
ThreadState. then(FunctionState function, FunctionState thenFunction)
CreatesFunctionState
to execute the chain of the firstFunctionState
before moving onto execute the chain of the secondFunctionState
.FunctionState
ProcessState. threadComplete(ThreadState thread, FunctionState threadCompletion)
Flags that the inputThreadState
has complete.FunctionState
ManagedObjectContainer. unloadManagedObject()
Creates aFunctionState
to unload theManagedObject
.FunctionState
ManagedObjectContainer. unregisterGovernance(int governanceIndex)
Unregisters theManagedObject
fromGovernance
.FunctionState
ManagedFunctionInterest. unregisterInterest()
Unregisters interest in theManagedFunctionContainer
.FunctionState
ActiveAsynchronousFlow. waitOnCompletion()
Ensure wait on completion.Methods in net.officefloor.frame.internal.structure with parameters of type FunctionState Modifier and Type Method Description AvoidTeam
ThreadState. avoidTeam(FunctionState function, TeamManagement team)
Runs avoiding the specifiedTeam
.FunctionState
AssetLatch. awaitOnAsset(FunctionState function)
Flags for theFunctionState
(and more specifically theThreadState
of theFunctionState
) to wait until theAsset
is ready.void
FunctionLoop. delegateFunction(FunctionState function)
Delegates theFunctionState
to the appropriateTeam
to execute.FunctionState
FunctionStateContext. executeDelegate(FunctionState delegate)
Wraps executing the delegateFunctionState
to enable breaking the delegate chain.void
FunctionLoop. executeFunction(FunctionState function)
Executes theFunctionState
within the currentThread
.FunctionState
ThreadStateContext. executeFunction(FunctionState function)
Executes theFunctionState
returning the nextFunctionState
to execute.FunctionState
Flow. managedFunctionComplete(FunctionState function, java.lang.Throwable functionEscalation, EscalationCompletion escalationCompletion)
Flags that the inputFunctionState
has completed.void
AssetLatch. releaseFunctions(boolean isPermanent, FunctionState functionState)
Releases theFunctionState
instances waiting on theAsset
.void
ThreadLocalAwareExecutor. runInContext(FunctionState function, FunctionLoop loop)
Runs theProcessState
within context to enable theThreadLocal
instances of the currentThread
to be available.FunctionState
ThreadState. runWithin(FunctionState function)
Runs theFunctionState
within thisThreadState
.FunctionState
ThreadState. then(FunctionState function, FunctionState thenFunction)
CreatesFunctionState
to execute the chain of the firstFunctionState
before moving onto execute the chain of the secondFunctionState
.FunctionState
ProcessState. threadComplete(ThreadState thread, FunctionState threadCompletion)
Flags that the inputThreadState
has complete.
-