public abstract class BasicWebSessionActor<T extends BasicWebSessionActor>
extends org.nustaq.kontraktor.Actor<T>
implements org.nustaq.kontraktor.remoting.base.RemotedActor
| Modifier and Type | Field and Description |
|---|---|
protected BasicWebAppActor |
app |
protected String |
sessionId
this can be null in case of websocket connections FIXME
|
protected String |
userKey |
__cbQueue, __clientConnection, __connections, __currentDispatcher, __mailbox, __mailboxCapacity, __mbCapacity, __publishTarget, __remoteId, __scheduler, __self, __stopped, __ticketMachine, connection, sender, userData, zzRoutingGCEnabled, zzServerMsgCallback| Constructor and Description |
|---|
BasicWebSessionActor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getSessionId() |
protected ISessionStorage |
getSessionStorage() |
String |
getUserKey() |
void |
hasBeenUnpublished(String connectionIdentifier) |
org.nustaq.kontraktor.IPromise |
init(BasicWebAppActor app,
BasicAuthenticationResult user,
String sessionId) |
protected abstract org.nustaq.kontraktor.IPromise |
loadSessionData(String sessionId,
ISessionStorage storage)
laod session state after resurrection.
|
protected abstract void |
persistSessionData(String sessionId,
ISessionStorage storage)
persist session state for resurrection later on, do nothing if resurrection should not be supported
|
__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, hasStopped, 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, InThread, isComplete, isCont, isError, isErrorOrComplete, isResult, isTimeout, promise, race, race, reject, resolve, resolve, stream, SubmitDelayed, yield, yield, yieldCallbacksprotected BasicWebAppActor app
protected String userKey
protected String sessionId
public org.nustaq.kontraktor.IPromise init(BasicWebAppActor app, BasicAuthenticationResult user, String sessionId)
public String getSessionId()
public String getUserKey()
public void hasBeenUnpublished(String connectionIdentifier)
hasBeenUnpublished in interface org.nustaq.kontraktor.remoting.base.RemotedActorprotected abstract void persistSessionData(String sessionId, ISessionStorage storage)
storage - protected abstract org.nustaq.kontraktor.IPromise loadSessionData(String sessionId, ISessionStorage storage)
storage - protected ISessionStorage getSessionStorage()
Copyright © 2017. All rights reserved.