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(int senderId,
String key,
Object... keyVals) |
protected String |
addChannelIdIfPresent(org.nustaq.kontraktor.Callback cb,
String sid) |
org.nustaq.kontraktor.IPromise<Boolean> |
addRecord(int senderId,
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(java.util.function.Supplier<RecordStorage> storeFactory,
TableDescription desc) |
void |
merge(int senderId,
String key,
Object... keyVals) |
void |
mergeRecord(int senderId,
Record rec) |
void |
put(int senderId,
String key,
Object... keyVals) |
void |
receive(ChangeMessage change) |
void |
remove(int senderId,
String key) |
org.nustaq.kontraktor.IPromise |
resizeIfLoadFactorLarger(double loadFactor,
long maxGrowBytes) |
void |
setRecord(int senderId,
Record rec) |
org.nustaq.kontraktor.IPromise<Long> |
size() |
void |
subscribe(Subscriber subs)
DO NOT USE DIRECTLY, use subscribeOn etc.
|
org.nustaq.kontraktor.IPromise<Record> |
take(int senderId,
String key) |
void |
unsubscribe(Subscriber subs) |
void |
unsubscribeById(int subsId) |
void |
update(int senderId,
String key,
Object... keyVals) |
__addDeadLetter, __addRemoteConnection, __addStopHandler, __dispatchRemoteCall, __enqueueCall, __getCachedMethod, __removeRemoteConnection, __stop, __stopImpl, __submit, ask, askMsg, asyncstop, checkThread, close, closeCurrentClient, current, cyclic, debounce, 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, waitfind, queryListadd, addRecord, merge, mergeRecord, ping, put, remove, setRecord, stop, updatelisten, observe, subscribeOn, subscribeOnforEach, forEach, map, querypublic static int MAX_QUERY_BATCH_SIZE
public static boolean DUMP_QUERY_TIME
public org.nustaq.kontraktor.IPromise init(java.util.function.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)
ChangeStreamsubscribe 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 unsubscribeById(int subsId)
unsubscribeById in interface RealLiveTablepublic 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(int senderId,
String key,
Object... keyVals)
put in interface SafeRealLiveTablepublic void merge(int senderId,
String key,
Object... keyVals)
merge in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<Boolean> add(int senderId, String key, Object... keyVals)
add in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<Boolean> addRecord(int senderId, Record rec)
addRecord in interface SafeRealLiveTablepublic void mergeRecord(int senderId,
Record rec)
mergeRecord in interface SafeRealLiveTablepublic void setRecord(int senderId,
Record rec)
setRecord in interface SafeRealLiveTablepublic void update(int senderId,
String key,
Object... keyVals)
update in interface SafeRealLiveTablepublic org.nustaq.kontraktor.IPromise<Record> take(int senderId, String key)
take in interface SafeRealLiveTablepublic void remove(int senderId,
String key)
remove in interface SafeRealLiveTableCopyright © 2019. All rights reserved.