public class RealLiveTableActor<K> extends org.nustaq.kontraktor.Actor<RealLiveTableActor<K>> implements RealLiveTable<K>, Mutatable<K>
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DUMP_QUERY_TIME |
static int |
MAX_QUERY_BATCH_SIZE |
| Constructor and Description |
|---|
RealLiveTableActor() |
| Modifier and Type | Method and Description |
|---|---|
void |
_subscribe(RLPredicate<Record<K>> prePatchFilter,
RLPredicate pred,
org.nustaq.kontraktor.Callback cb,
int id) |
void |
_unsubscribe(org.nustaq.kontraktor.Callback cb,
int id) |
protected String |
addChannelIdIfPresent(org.nustaq.kontraktor.Callback cb,
String sid) |
void |
atomic(K key,
RLConsumer<Record<K>> action) |
void |
execQueriesOrDelay(int size,
int taCount) |
<T> void |
forEach(org.nustaq.kontraktor.Spore<Record<K>,T> spore) |
<T> void |
forEachDirect(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() |
protected void |
hasStopped() |
void |
init(Supplier<RecordStorage<K>> storeFactory,
TableDescription desc) |
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 |
subscribe(Subscriber<K> subs) |
void |
unsubscribe(Subscriber<K> subs) |
__addDeadLetter, __addRemoteConnection, __addStopHandler, __enqueueCall, __getCachedMethod, __removeRemoteConnection, __stop, __stopImpl, __submit, ask, asyncstop, checkThread, close, closeCurrentClient, current, delayed, exec, execute, getActor, getActorRef, getCallbackSize, getConnections, getCurrentDispatcher, getFactory, getMailboxSize, getQSizes, getReport, getScheduler, getSubMonitorables, getThrowExWhenBlocked, inside, inThread, isCallbackQPressured, isEmpty, isMailboxPressured, isProxy, isPublished, isRemote, isStopped, ping, self, serialOn, setThrowExWhenBlocked, stop, stopSafeClose, tell, transferToAddDeadLetter, all, all, all, allMapped, AsActor, AsActor, AsActor, AsActor, AsBufferedActor, awaitAll, awaitAll, awaitAll, awaitAll, complete, complete, DeadLetters, InThread, isComplete, isCont, isError, isErrorOrComplete, isResult, isTimeout, race, race, reject, resolve, resolve, stream, SubmitDelayed, yield, yield, yieldCallbacksclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitping, stopfilter, filterPP, querysubscribeOn, subscribeOn, subscribeOnpublic static int MAX_QUERY_BATCH_SIZE
public static boolean DUMP_QUERY_TIME
public void init(Supplier<RecordStorage<K>> storeFactory, TableDescription desc)
public void receive(ChangeMessage<K> change)
receive in interface ChangeReceiver<K>public <T> void forEach(org.nustaq.kontraktor.Spore<Record<K>,T> spore)
forEach in interface RealLiveStreamActor<K>protected void hasStopped()
hasStopped in class org.nustaq.kontraktor.Actor<RealLiveTableActor<K>>public void subscribe(Subscriber<K> subs)
subscribe in interface ChangeStream<K>public void _subscribe(RLPredicate<Record<K>> prePatchFilter, RLPredicate pred, org.nustaq.kontraktor.Callback cb, int id)
public void execQueriesOrDelay(int size,
int taCount)
protected String addChannelIdIfPresent(org.nustaq.kontraktor.Callback cb, String sid)
public void unsubscribe(Subscriber<K> subs)
unsubscribe in interface ChangeStream<K>public void _unsubscribe(org.nustaq.kontraktor.Callback cb,
int id)
public Mutation<K> getMutation()
getMutation in interface Mutatable<K>public org.nustaq.kontraktor.IPromise<TableDescription> getDescription()
getDescription in interface RealLiveTable<K>public org.nustaq.kontraktor.IPromise<StorageStats> getStats()
getStats in interface RealLiveTable<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>Copyright © 2016. All rights reserved.