public class TableSharding<K> extends Object implements RealLiveTable<K>
| Modifier and Type | Class and Description |
|---|---|
protected class |
TableSharding.ShardMutation |
| Constructor and Description |
|---|
TableSharding(ShardFunc<K> func,
RealLiveTable<K>[] shards,
TableDescription desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
atomic(K key,
RLConsumer<Record<K>> action) |
<T> void |
forEach(org.nustaq.kontraktor.Spore<Record<K>,T> spore) |
org.nustaq.kontraktor.IPromise<Record<K>> |
get(K key) |
org.nustaq.kontraktor.IPromise<TableDescription> |
getDescription() |
Mutation<K> |
getMutation() |
org.nustaq.kontraktor.IPromise<StorageStats> |
getStats() |
org.nustaq.kontraktor.IPromise |
ping() |
org.nustaq.kontraktor.IPromise<Boolean> |
putCAS(RLPredicate<Record<K>> casCondition,
K key,
Object... keyVals) |
void |
receive(ChangeMessage<K> change) |
org.nustaq.kontraktor.IPromise<Long> |
size() |
void |
stop() |
void |
subscribe(Subscriber<K> subs) |
void |
unsubscribe(Subscriber<K> subs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilter, filterPP, querysubscribeOn, subscribeOn, subscribeOnpublic TableSharding(ShardFunc<K> func, RealLiveTable<K>[] shards, TableDescription desc)
public void receive(ChangeMessage<K> change)
receive in interface ChangeReceiver<K>public void subscribe(Subscriber<K> subs)
subscribe in interface ChangeStream<K>public void unsubscribe(Subscriber<K> subs)
unsubscribe in interface ChangeStream<K>public org.nustaq.kontraktor.IPromise<Boolean> putCAS(RLPredicate<Record<K>> casCondition, K key, Object... keyVals)
putCAS in interface RealLiveTable<K>public void atomic(K key, RLConsumer<Record<K>> action)
atomic in interface RealLiveTable<K>public Mutation<K> getMutation()
getMutation in interface Mutatable<K>public <T> void forEach(org.nustaq.kontraktor.Spore<Record<K>,T> spore)
forEach in interface RealLiveStreamActor<K>public org.nustaq.kontraktor.IPromise ping()
ping in interface RealLiveTable<K>public org.nustaq.kontraktor.IPromise<TableDescription> getDescription()
getDescription in interface RealLiveTable<K>public void stop()
stop in interface RealLiveTable<K>public org.nustaq.kontraktor.IPromise<StorageStats> getStats()
getStats in interface RealLiveTable<K>Copyright © 2016. All rights reserved.