public class AtomixWorkQueueState
extends io.atomix.resource.ResourceStateMachine
implements io.atomix.copycat.server.session.SessionListener, io.atomix.copycat.server.Snapshottable
AtomixWorkQueue resource.| Modifier | Constructor and Description |
|---|---|
protected |
AtomixWorkQueueState(Properties config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Add> commit) |
protected void |
clear(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Clear> commit) |
void |
close(io.atomix.copycat.server.session.ServerSession session) |
protected void |
complete(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Complete> commit) |
protected void |
configure(io.atomix.copycat.server.StateMachineExecutor executor) |
void |
expire(io.atomix.copycat.server.session.ServerSession session) |
void |
install(io.atomix.copycat.server.storage.snapshot.SnapshotReader reader) |
protected void |
register(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Register> commit) |
void |
register(io.atomix.copycat.server.session.ServerSession session) |
void |
snapshot(io.atomix.copycat.server.storage.snapshot.SnapshotWriter writer) |
protected WorkQueueStats |
stats(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Stats> commit) |
protected Collection<Task<byte[]>> |
take(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Take> commit) |
protected void |
unregister(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Unregister> commit) |
void |
unregister(io.atomix.copycat.server.session.ServerSession session) |
protected AtomixWorkQueueState(Properties config)
protected void configure(io.atomix.copycat.server.StateMachineExecutor executor)
configure in class io.atomix.copycat.server.StateMachineprotected WorkQueueStats stats(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Stats> commit)
protected void clear(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Clear> commit)
protected void register(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Register> commit)
protected void unregister(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Unregister> commit)
protected void add(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Add> commit)
protected Collection<Task<byte[]>> take(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Take> commit)
protected void complete(io.atomix.copycat.server.Commit<? extends AtomixWorkQueueCommands.Complete> commit)
public void register(io.atomix.copycat.server.session.ServerSession session)
register in interface io.atomix.copycat.server.session.SessionListenerregister in class io.atomix.resource.ResourceStateMachinepublic void unregister(io.atomix.copycat.server.session.ServerSession session)
unregister in interface io.atomix.copycat.server.session.SessionListenerunregister in class io.atomix.resource.ResourceStateMachinepublic void expire(io.atomix.copycat.server.session.ServerSession session)
expire in interface io.atomix.copycat.server.session.SessionListenerexpire in class io.atomix.resource.ResourceStateMachinepublic void close(io.atomix.copycat.server.session.ServerSession session)
close in interface io.atomix.copycat.server.session.SessionListenerclose in class io.atomix.resource.ResourceStateMachinepublic void snapshot(io.atomix.copycat.server.storage.snapshot.SnapshotWriter writer)
snapshot in interface io.atomix.copycat.server.Snapshottablepublic void install(io.atomix.copycat.server.storage.snapshot.SnapshotReader reader)
install in interface io.atomix.copycat.server.Snapshottable