Uses of Interface
net.officefloor.plugin.managedobject.poll.StatePollContext
-
Packages that use StatePollContext Package Description net.officefloor.plugin.managedobject.poll -
-
Uses of StatePollContext in net.officefloor.plugin.managedobject.poll
Methods in net.officefloor.plugin.managedobject.poll with parameters of type StatePollContext Modifier and Type Method Description void
StatePoller.Initialiser. initialise(StatePollContext<S> context, FlowCallback callback)
Invoked to initialise polling state.void
StatePoller.Poller. nextPoll(long delay, StatePollContext<S> context, FlowCallback callback)
Invoked to setup the next poll.Method parameters in net.officefloor.plugin.managedobject.poll with type arguments of type StatePollContext Modifier and Type Method Description static <S> StatePoller.Builder<S,Indexed>
StatePoller. builder(java.lang.Class<S> stateType, Clock<java.lang.Long> clock, int flowIndex, ManagedObjectExecuteContext<Indexed> executeContext, java.util.function.Function<StatePollContext<S>,ManagedObject> managedObjectFactory)
Creates aStatePoller.Builder
forFlow
index.static <S,F extends java.lang.Enum<F>>
StatePoller.Builder<S,F>StatePoller. builder(java.lang.Class<S> stateType, Clock<java.lang.Long> clock, F flowKey, ManagedObjectExecuteContext<F> executeContext, java.util.function.Function<StatePollContext<S>,ManagedObject> managedObjectFactory)
Creates aStatePoller.Builder
forFlow
key.StatePoller.Builder<S,F>
StatePoller.Builder. parameter(java.util.function.Function<StatePollContext<S>,java.lang.Object> parameterFactory)
Allows providing a parameter to theProcessState
invoked from theManagedObjectExecuteContext
for polling.
-