Class RLJsonSession<T extends RLJsonSession>
java.lang.Object
org.nustaq.kontraktor.Actors
org.nustaq.kontraktor.Actor<T>
org.nustaq.kontraktor.services.rlserver.RLJsonSession<T>
- All Implemented Interfaces:
Serializable,Executor,org.nustaq.kontraktor.monitoring.Monitorable,org.nustaq.kontraktor.remoting.base.RemotedActor
public class RLJsonSession<T extends RLJsonSession>
extends org.nustaq.kontraktor.Actor<T>
implements org.nustaq.kontraktor.remoting.base.RemotedActor
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nustaq.kontraktor.Actor
org.nustaq.kontraktor.Actor.ActorReport -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataClientprotected intprotected static AtomicIntegerstatic intstatic intprotected RLJsonServerprotected Map<String,JsonSubsEntry<String>> Fields inherited from class org.nustaq.kontraktor.Actor
__cbQueue, __clientConnection, __connections, __currentDispatcher, __mailbox, __mailboxCapacity, __mbCapacity, __publishTarget, __remoteId, __scheduler, __self, __stopped, __ticketMachine, connection, sender, userData, zzRoutingGCEnabled, zzServerMsgCallbackFields inherited from class org.nustaq.kontraktor.Actors
CONT, DEFAULT_TIMOUT, defaultScheduler, delayedCalls, exec, instance, MAX_EXTERNAL_THREADS_POOL_SIZE, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_internalUpdate(org.nustaq.reallive.api.RealLiveTable tbl, org.nustaq.reallive.api.Record newRecord) processes special ops like { "array+" : value } and _NULL_org.nustaq.kontraktor.IPromise<Long>bulkUpdate(String table, String json) process a series of add/update operations.org.nustaq.kontraktor.IPromisevoiddeleteAsync(String table, String key) protected com.eclipsesource.json.JsonObjectfromChange(org.nustaq.reallive.api.ChangeMessage change) protected com.eclipsesource.json.JsonObjectfromRecord(org.nustaq.reallive.api.Record r) org.nustaq.kontraktor.IPromise<String>org.nustaq.kontraktor.IPromise<Integer>voidhasBeenPublished(String connectionIdentifier) voidhasBeenUnpublished(String connectionIdentifier) voidinit(RLJsonServer server, DataClient dataClient, Object userdata) voidvoidselectHashed(String table, String indexPath2hashKeyJson, String query, org.nustaq.kontraktor.Callback<String> res) voidorg.nustaq.kontraktor.IPromise<Long>subscribeSyncing(String uuid, String table, long timeStamp, String query, org.nustaq.kontraktor.Callback<String> res) protected org.nustaq.reallive.api.RecordtoRecord(com.eclipsesource.json.JsonObject members) voidunsubscribe(String uuid) org.nustaq.kontraktor.IPromisevoidupdateAsync(String table, String json) Methods inherited from class org.nustaq.kontraktor.Actor
__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, hasStopped, inside, inThread, isCallbackQPressured, isEmpty, isMailboxPressured, isProxy, isPublished, isRemote, isStopped, ping, router$clientPing, self, serialOn, setServerMsgCallback, stop, stopSafeClose, tell, tellMsg, unpublish, zzkrouterLostClient, zzRoutingRefGCMethods inherited from class org.nustaq.kontraktor.Actors
AddDeadLetter, all, all, all, allMapped, AsActor, AsActor, AsActor, AsActor, AsUntypedActor, awaitAll, awaitAll, awaitAll, awaitAll, complete, complete, DeadLetters, flow, InThread, isComplete, isCont, isError, isErrorOrComplete, isResult, isTimeout, kYield, kYield, promise, race, race, reject, resolve, resolve, stream, SubmitDelayed, yieldCallbacks
-
Field Details
-
senderIdRangeStart
public static int senderIdRangeStart -
senderIdRangeEnd
public static int senderIdRangeEnd -
senderIdCount
-
server
-
dClient
-
senderId
protected int senderId -
subscriptions
-
-
Constructor Details
-
RLJsonSession
public RLJsonSession()
-
-
Method Details
-
init
-
getSenderId
-
update
-
updateAsync
-
delete
-
fieldsOf
-
get
-
selectHashed
-
select
-
unsubscribe
-
subscribe
-
subscribeSyncing
-
fromChange
protected com.eclipsesource.json.JsonObject fromChange(org.nustaq.reallive.api.ChangeMessage change) -
deleteAsync
-
bulkUpdate
process a series of add/update operations. Input is a map<recordkey,list. Atomic Array Ops can be done like { "array+" : value } - add value to existing array { "array-" : value } - remove all equal values from existing array { "array?+" : value } - add only if value does not yet exist (set-like behaviour) _NULL_ - can be used to denote null values (real null will be evicted by json ) - Parameters:
table-json- - [ addOrUpdate, .. ]- Returns:
-
_internalUpdate
protected void _internalUpdate(org.nustaq.reallive.api.RealLiveTable tbl, org.nustaq.reallive.api.Record newRecord) processes special ops like { "array+" : value } and _NULL_- Parameters:
tbl-newRecord-
-
fromRecord
protected com.eclipsesource.json.JsonObject fromRecord(org.nustaq.reallive.api.Record r) -
toRecord
protected org.nustaq.reallive.api.Record toRecord(com.eclipsesource.json.JsonObject members) -
hasBeenUnpublished
- Specified by:
hasBeenUnpublishedin interfaceorg.nustaq.kontraktor.remoting.base.RemotedActor
-
hasBeenPublished
- Specified by:
hasBeenPublishedin interfaceorg.nustaq.kontraktor.remoting.base.RemotedActor
-