public class RealLiveTableActor extends org.nustaq.kontraktor.Actor<RealLiveTableActor> implements RealLiveTable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DUMP_QUERY_TIME |
static int |
MAX_QUERY_BATCH_SIZE |
__cbQueue, __clientConnection, __connections, __currentDispatcher, __mailbox, __mailboxCapacity, __mbCapacity, __publishTarget, __remoteId, __scheduler, __self, __stopped, __ticketMachine, connection, sender, userData, zzRoutingGCEnabled, zzServerMsgCallback| Constructor and Description |
|---|
RealLiveTableActor() |
| Modifier and Type | Method and Description |
|---|---|
void |
_execQueriesOrDelay(int size,
int taCount) |
void |
_subscribe(RLPredicate pred,
org.nustaq.kontraktor.Callback cb,
int id) |
void |
_unsubscribe(org.nustaq.kontraktor.Callback cb,
int id) |
org.nustaq.kontraktor.IPromise<Boolean> |
add(String key,
Object... keyVals) |
protected String |
addChannelIdIfPresent(org.nustaq.kontraktor.Callback cb,
String sid) |
org.nustaq.kontraktor.IPromise<Boolean> |
addRecord(Record rec) |
org.nustaq.kontraktor.IPromise |
atomic(String key,
RLFunction<Record,Object> action)
apply the function to the record with given key and return the result inside a promise
changes to the record inside the function are applied to the real record and a change message
is generated.
|
void |
atomicUpdate(RLPredicate<Record> filter,
RLFunction<Record,Boolean> action)
mass update.
|
<T> void |
forEachDirect(org.nustaq.kontraktor.Spore<Record,T> spore) |
<T> void |
forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore) |
org.nustaq.kontraktor.IPromise<Record> |
get(String key) |
org.nustaq.kontraktor.IPromise<TableDescription> |
getDescription() |
org.nustaq.kontraktor.IPromise<StorageStats> |
getStats() |
protected void |
hasStopped() |
org.nustaq.kontraktor.IPromise |
init(Supplier<RecordStorage> storeFactory,
TableDescription desc) |
void |
merge(String key,
Object... keyVals) |
void |
mergeRecord(Record rec) |
void |
put(String key,
Object... keyVals) |
void |
receive(ChangeMessage change) |
void |
remove(String key) |
org.nustaq.kontraktor.IPromise |
resizeIfLoadFactorLarger(double loadFactor,
long maxGrowBytes) |
void |
setRecord(Record rec) |
org.nustaq.kontraktor.IPromise<Long> |
size() |
void |
subscribe(Subscriber subs) |
org.nustaq.kontraktor.IPromise<Record> |
take(String key) |
void |
unsubscribe(Subscriber subs) |
void |
update(String key,
Object... keyVals) |
__addDeadLetter, __addRemoteConnection, __addStopHandler, __dispatchRemoteCall, __enqueueCall, __getCachedMethod, __removeRemoteConnection, __stop, __stopImpl, __submit, ask, askMsg, asyncstop, checkThread, close, closeCurrentClient, current, cyclic, delayed, execInThreadPool, execute, getActor, getActorRef, getCallbackSize, getConnections, getCurrentDispatcher, getFactory, getMailboxSize, getQSizes, getReport, getScheduler, getSubMonitorables, getUntypedRef, inside, inThread, isCallbackQPressured, isEmpty, isMailboxPressured, isProxy, isPublished, isRemote, isStopped, ping, router$clientPing, self, serialOn, setServerMsgCallback, stop, stopSafeClose, tell, tellMsg, unpublish, zzkrouterLostClient, zzRoutingRefGCAddDeadLetter, all, all, all, allMapped, AsActor, AsActor, AsActor, AsActor, AsUntypedActor, awaitAll, awaitAll, awaitAll, awaitAll, complete, complete, DeadLetters, flow, InThread, isComplete, isCont, isError, isErrorOrComplete, isResult, isTimeout, promise, race, race, reject, resolve, resolve, stream, SubmitDelayed, yield, yield, yieldCallbacksclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitping, stopsubscribeOn, subscribeOnforEach, map, querypublic static int MAX_QUERY_BATCH_SIZE
public static boolean DUMP_QUERY_TIME
public org.nustaq.kontraktor.IPromise init(Supplier<RecordStorage> storeFactory, TableDescription desc)
public void receive(ChangeMessage change)
receive in interface ChangeReceiverpublic <T> void forEachDirect(org.nustaq.kontraktor.Spore<Record,T> spore)
public <T> void forEachWithSpore(org.nustaq.kontraktor.Spore<Record,T> spore)
forEachWithSpore in interface RealLiveStreamActorprotected void hasStopped()
hasStopped in class org.nustaq.kontraktor.Actor<RealLiveTableActor>public void subscribe(Subscriber subs)
subscribe in interface ChangeStreampublic void _subscribe(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 subs)
unsubscribe in interface ChangeStreampublic void _unsubscribe(org.nustaq.kontraktor.Callback cb,
int id)
public org.nustaq.kontraktor.IPromise<Record> get(String key)
get in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<Long> size()
size in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<TableDescription> getDescription()
getDescription in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<StorageStats> getStats()
getStats in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise atomic(String key, RLFunction<Record,Object> action)
RealLiveTableatomic in interface RealLiveTablepublic void atomicUpdate(RLPredicate<Record> filter, RLFunction<Record,Boolean> action)
RealLiveTableatomicUpdate in interface RealLiveTablefilter - - selects recordsaction - - function, the function might modify the record using putField. If false is returned, the record is deletedpublic org.nustaq.kontraktor.IPromise resizeIfLoadFactorLarger(double loadFactor,
long maxGrowBytes)
resizeIfLoadFactorLarger in interface SafeRealLiveTablepublic void put(String key, Object... keyVals)
put in interface SafeRealLiveTablepublic void merge(String key, Object... keyVals)
merge in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<Boolean> add(String key, Object... keyVals)
add in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<Boolean> addRecord(Record rec)
addRecord in interface SafeRealLiveTablepublic void mergeRecord(Record rec)
mergeRecord in interface SafeRealLiveTablepublic void setRecord(Record rec)
setRecord in interface SafeRealLiveTablepublic void update(String key, Object... keyVals)
update in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<Record> take(String key)
take in interface SafeRealLiveTablepublic void remove(String key)
remove in interface SafeRealLiveTableCopyright © 2017. All rights reserved.