Package com.tangosol.util.fsm
Class NonBlockingFiniteStateMachine.DefaultTaskDependencies
java.lang.Object
com.tangosol.util.fsm.NonBlockingFiniteStateMachine.DefaultTaskDependencies
- All Implemented Interfaces:
NonBlockingFiniteStateMachine.TaskDependencies
- Enclosing class:
NonBlockingFiniteStateMachine<S extends Enum<S>>
public static class NonBlockingFiniteStateMachine.DefaultTaskDependencies
extends Object
implements NonBlockingFiniteStateMachine.TaskDependencies
Implementation of Dependencies for Task
-
Constructor Summary
ConstructorDescriptionDefault constructor.Create a DefaultTaskDependencies with providedNonBlockingFiniteStateMachine.TaskDependencies
. -
Method Summary
Modifier and TypeMethodDescriptionReturn the associated key for the task.long
Return the execution timeout for the task in millisecond.setAssociatedKey
(Object key) Configure the associated key for Task.setExecutionTimeoutMillis
(long timeout) Configure the execution timeout for Task.
-
Constructor Details
-
DefaultTaskDependencies
public DefaultTaskDependencies()Default constructor. -
DefaultTaskDependencies
Create a DefaultTaskDependencies with providedNonBlockingFiniteStateMachine.TaskDependencies
.- Parameters:
deps
- the TaskDependencies
-
-
Method Details
-
getExecutionTimeoutMillis
public long getExecutionTimeoutMillis()Return the execution timeout for the task in millisecond.- Specified by:
getExecutionTimeoutMillis
in interfaceNonBlockingFiniteStateMachine.TaskDependencies
- Returns:
- the execution timeout
-
setExecutionTimeoutMillis
public NonBlockingFiniteStateMachine.DefaultTaskDependencies setExecutionTimeoutMillis(long timeout) Configure the execution timeout for Task.- Parameters:
timeout
- execution timeout in millisecond- Returns:
- this object
-
getAssociatedKey
Return the associated key for the task.- Specified by:
getAssociatedKey
in interfaceNonBlockingFiniteStateMachine.TaskDependencies
- Returns:
- the associated key
-
setAssociatedKey
Configure the associated key for Task.- Parameters:
key
- the associated key- Returns:
- this object.
-