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
Constructors Constructor Description DefaultTaskDependencies()
Default constructor.DefaultTaskDependencies(NonBlockingFiniteStateMachine.TaskDependencies deps)
Create a DefaultTaskDependencies with providedNonBlockingFiniteStateMachine.TaskDependencies
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAssociatedKey()
Return the associated key for the task.long
getExecutionTimeoutMillis()
Return the execution timeout for the task in millisecond.NonBlockingFiniteStateMachine.DefaultTaskDependencies
setAssociatedKey(Object key)
Configure the associated key for Task.NonBlockingFiniteStateMachine.DefaultTaskDependencies
setExecutionTimeoutMillis(long timeout)
Configure the execution timeout for Task.
-
-
-
Constructor Detail
-
DefaultTaskDependencies
public DefaultTaskDependencies()
Default constructor.
-
DefaultTaskDependencies
public DefaultTaskDependencies(NonBlockingFiniteStateMachine.TaskDependencies deps)
Create a DefaultTaskDependencies with providedNonBlockingFiniteStateMachine.TaskDependencies
.- Parameters:
deps
- the TaskDependencies
-
-
Method Detail
-
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
public Object getAssociatedKey()
Return the associated key for the task.- Specified by:
getAssociatedKey
in interfaceNonBlockingFiniteStateMachine.TaskDependencies
- Returns:
- the associated key
-
setAssociatedKey
public NonBlockingFiniteStateMachine.DefaultTaskDependencies setAssociatedKey(Object key)
Configure the associated key for Task.- Parameters:
key
- the associated key- Returns:
- this object.
-
-