public final class ResourceStateMachineExecutor extends Object implements StateMachineExecutor
ResourceStateMachine operations.
This is a special executor used by Atomix to execute resource state machines to unwrap
resource commands and queries.
| Modifier and Type | Method and Description |
|---|---|
StateMachineContext |
context() |
Executor |
executor() |
org.slf4j.Logger |
logger() |
<T extends Operation<Void>> |
register(Class<T> type,
Consumer<Commit<T>> callback) |
<T extends Operation<U>,U> |
register(Class<T> type,
Function<Commit<T>,U> callback) |
Scheduled |
schedule(Duration initialDelay,
Duration interval,
Runnable callback) |
Scheduled |
schedule(Duration delay,
Runnable callback) |
Serializer |
serializer() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblock, close, isBlocked, unblockcheckThread, currentContext, currentContextOrThrow, execute, execute, isCurrentContextpublic StateMachineContext context()
context in interface StateMachineExecutorpublic org.slf4j.Logger logger()
logger in interface ThreadContextpublic Serializer serializer()
serializer in interface ThreadContextpublic Executor executor()
executor in interface ThreadContextpublic <T extends Operation<Void>> StateMachineExecutor register(Class<T> type, Consumer<Commit<T>> callback)
register in interface StateMachineExecutorpublic <T extends Operation<U>,U> StateMachineExecutor register(Class<T> type, Function<Commit<T>,U> callback)
register in interface StateMachineExecutorpublic Scheduled schedule(Duration delay, Runnable callback)
schedule in interface ThreadContextCopyright © 2013–2016. All rights reserved.