public class DefaultStateMachine<T> extends AbstractResource<StateMachine<T>> implements StateMachine<T>
executor, serializer| Constructor and Description |
|---|
DefaultStateMachine(ResourceManager context,
Class<T> stateType,
Class<? extends T> initialState) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
close() |
<U> U |
createProxy(Class<U> type)
Creates a state machine proxy.
|
<U> U |
createProxy(Class<U> type,
ClassLoader classLoader)
Creates a state machine proxy.
|
boolean |
isClosed() |
boolean |
isOpen() |
CompletableFuture<StateMachine<T>> |
open() |
addShutdownTask, addStartupTask, cluster, name, runShutdownTasks, runStartupTasks, stateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, createaddShutdownTask, addStartupTask, cluster, name, statepublic DefaultStateMachine(ResourceManager context, Class<T> stateType, Class<? extends T> initialState)
public <U> U createProxy(Class<U> type)
StateMachinecreateProxy in interface StateMachine<T>U - The proxy type.type - The proxy interface.public <U> U createProxy(Class<U> type, ClassLoader classLoader)
StateMachinecreateProxy in interface StateMachine<T>U - The proxy type.type - The proxy interface.classLoader - The class loader to define the proxy class.public CompletableFuture<StateMachine<T>> open()
open in interface Managed<StateMachine<T>>public boolean isOpen()
isOpen in interface Managed<StateMachine<T>>isOpen in class AbstractResource<StateMachine<T>>public CompletableFuture<Void> close()
close in interface Managed<StateMachine<T>>public boolean isClosed()
isClosed in interface Managed<StateMachine<T>>isClosed in class AbstractResource<StateMachine<T>>Copyright © 2013-2015. All Rights Reserved.