public class AtomixDocumentTreeState
extends io.atomix.resource.ResourceStateMachine
implements io.atomix.copycat.server.session.SessionListener, io.atomix.copycat.server.Snapshottable
AtomixDocumentTree resource.| Constructor and Description |
|---|
AtomixDocumentTreeState(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Clear> commit) |
void |
close(io.atomix.copycat.server.session.ServerSession session) |
protected void |
configure(io.atomix.copycat.server.StateMachineExecutor executor) |
void |
expire(io.atomix.copycat.server.session.ServerSession session) |
protected Versioned<byte[]> |
get(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Get> commit) |
protected Map<String,Versioned<byte[]>> |
getChildren(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.GetChildren> commit) |
void |
install(io.atomix.copycat.server.storage.snapshot.SnapshotReader reader) |
protected void |
listen(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Listen> commit) |
void |
register(io.atomix.copycat.server.session.ServerSession session) |
void |
snapshot(io.atomix.copycat.server.storage.snapshot.SnapshotWriter writer) |
protected void |
unlisten(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Unlisten> commit) |
void |
unregister(io.atomix.copycat.server.session.ServerSession session) |
protected DocumentTreeUpdateResult<byte[]> |
update(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Update> commit) |
public AtomixDocumentTreeState(Properties properties)
public 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.Snapshottableprotected void configure(io.atomix.copycat.server.StateMachineExecutor executor)
configure in class io.atomix.copycat.server.StateMachineprotected void listen(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Listen> commit)
protected void unlisten(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Unlisten> commit)
protected Versioned<byte[]> get(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Get> commit)
protected Map<String,Versioned<byte[]>> getChildren(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.GetChildren> commit)
protected DocumentTreeUpdateResult<byte[]> update(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Update> commit)
protected void clear(io.atomix.copycat.server.Commit<? extends AtomixDocumentTreeCommands.Clear> 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.ResourceStateMachine