public class AsyncConsistentSetMultimapState
extends io.atomix.resource.ResourceStateMachine
implements io.atomix.copycat.server.session.SessionListener, io.atomix.copycat.server.Snapshottable
AsyncConsistentSetMultimap resource.| Constructor and Description |
|---|
AsyncConsistentSetMultimapState(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clear(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Clear> commit)
Handles a Clear commit.
|
void |
close(io.atomix.copycat.server.session.ServerSession session) |
protected void |
configure(io.atomix.copycat.server.StateMachineExecutor executor) |
protected boolean |
containsEntry(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.ContainsEntry> commit)
Handles a ContainsEntry commit.
|
protected boolean |
containsKey(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.ContainsKey> commit)
Handles a contains key commit.
|
protected boolean |
containsValue(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.ContainsValue> commit)
Handles a ContainsValue commit.
|
void |
delete() |
protected Collection<Map.Entry<String,byte[]>> |
entries(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Entries> commit)
Handles an Entries commit.
|
void |
expire(io.atomix.copycat.server.session.ServerSession session) |
protected org.onosproject.store.service.Versioned<Collection<? extends byte[]>> |
get(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Get> commit)
Handles a Get commit.
|
void |
install(io.atomix.copycat.server.storage.snapshot.SnapshotReader reader) |
protected boolean |
isEmpty(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.IsEmpty> commit)
Handles an IsEmpty commit.
|
protected com.google.common.collect.Multiset<String> |
keys(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Keys> commit)
Handles a Keys commit.
|
protected Set<String> |
keySet(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.KeySet> commit)
Handles a KeySet commit.
|
protected boolean |
multiRemove(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.MultiRemove> commit)
Handles a multiRemove commit, returns true if the remove results in any
change.
|
protected boolean |
put(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Put> commit)
Handles a put commit, returns true if any change results from this
commit.
|
void |
register(io.atomix.copycat.server.session.ServerSession session) |
protected org.onosproject.store.service.Versioned<Collection<? extends byte[]>> |
removeAll(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.RemoveAll> commit)
Handles a removeAll commit, and returns the previous mapping.
|
protected org.onosproject.store.service.Versioned<Collection<? extends byte[]>> |
replace(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Replace> commit) |
protected int |
size(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Size> commit)
Handles a Size commit.
|
void |
snapshot(io.atomix.copycat.server.storage.snapshot.SnapshotWriter writer) |
void |
unregister(io.atomix.copycat.server.session.ServerSession session) |
protected com.google.common.collect.Multiset<byte[]> |
values(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Values> commit)
Handles a Values commit.
|
public AsyncConsistentSetMultimapState(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.StateMachinepublic void delete()
delete in class io.atomix.resource.ResourceStateMachineprotected int size(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Size> commit)
commit - Size commitprotected boolean isEmpty(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.IsEmpty> commit)
commit - IsEmpty commitprotected boolean containsKey(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.ContainsKey> commit)
commit - ContainsKey commitprotected boolean containsValue(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.ContainsValue> commit)
commit - ContainsValue commitprotected boolean containsEntry(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.ContainsEntry> commit)
commit - ContainsEntry commitprotected void clear(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Clear> commit)
commit - Clear commitprotected Set<String> keySet(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.KeySet> commit)
commit - KeySet commitprotected com.google.common.collect.Multiset<String> keys(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Keys> commit)
commit - Keys commitprotected com.google.common.collect.Multiset<byte[]> values(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Values> commit)
commit - Values commitprotected Collection<Map.Entry<String,byte[]>> entries(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Entries> commit)
commit - Entries commitprotected org.onosproject.store.service.Versioned<Collection<? extends byte[]>> get(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Get> commit)
commit - Get commitprotected org.onosproject.store.service.Versioned<Collection<? extends byte[]>> removeAll(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.RemoveAll> commit)
commit - removeAll commitprotected boolean multiRemove(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.MultiRemove> commit)
commit - multiRemove commitprotected boolean put(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Put> commit)
commit - a put commitprotected org.onosproject.store.service.Versioned<Collection<? extends byte[]>> replace(io.atomix.copycat.server.Commit<? extends AsyncConsistentMultimapCommands.Replace> 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.ResourceStateMachineCopyright © 2016. All rights reserved.