public class ServerRxSessionImpl extends AppRxSessionImpl implements ServerRxSession, NetworkReqListener, EventListener<Request,Answer>
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
authAppIds |
protected IServerRxSessionContext |
context |
protected IRxMessageFactory |
factory |
protected ServerRxSessionListener |
listener |
protected Lock |
sendAndStateLock |
protected IServerRxSessionData |
sessionData |
stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ServerRxSessionImpl(IServerRxSessionData sessionData,
IRxMessageFactory fct,
ISessionFactory sf,
ServerRxSessionListener lst,
IServerRxSessionContext ctx,
StateChangeListener<AppSession> stLst) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatchEvent(AppEvent event) |
boolean |
equals(Object obj) |
<E> E |
getState(Class<E> stateType) |
boolean |
handleEvent(StateEvent event) |
int |
hashCode() |
protected boolean |
isProvisional(long resultCode) |
boolean |
isReplicable() |
boolean |
isStateless() |
protected boolean |
isSuccess(long resultCode) |
void |
onTimer(String timerName) |
Answer |
processRequest(Request request) |
void |
receivedSuccessMessage(Request request,
Answer answer) |
void |
release() |
protected void |
send(Event.Type type,
AppRequestEvent request,
AppAnswerEvent answer) |
void |
sendAAAnswer(RxAAAnswer answer) |
void |
sendAbortSessionRequest(RxAbortSessionRequest request) |
void |
sendReAuthRequest(RxReAuthRequest request) |
void |
sendSessionTermAnswer(RxSessionTermAnswer answer) |
protected void |
setState(ServerRxSessionState newState) |
protected void |
setState(ServerRxSessionState newState,
boolean release) |
void |
timeoutExpired(Request request) |
addStateChangeNotification, removeStateChangeNotificationgetCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValidaddStateChangeNotification, removeStateChangeNotificationprotected Lock sendAndStateLock
protected transient IRxMessageFactory factory
protected transient IServerRxSessionContext context
protected transient ServerRxSessionListener listener
protected long[] authAppIds
protected IServerRxSessionData sessionData
public ServerRxSessionImpl(IServerRxSessionData sessionData, IRxMessageFactory fct, ISessionFactory sf, ServerRxSessionListener lst, IServerRxSessionContext ctx, StateChangeListener<AppSession> stLst)
public void sendAAAnswer(RxAAAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendAAAnswer in interface ServerRxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendSessionTermAnswer(RxSessionTermAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendSessionTermAnswer in interface ServerRxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendReAuthRequest(RxReAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendReAuthRequest in interface ServerRxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendAbortSessionRequest(RxAbortSessionRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendAbortSessionRequest in interface ServerRxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic boolean isStateless()
isStateless in interface AppSessionpublic <E> E getState(Class<E> stateType)
getState in interface StateMachinepublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionpublic boolean isReplicable()
isReplicable in interface BaseSessionisReplicable in class AppSessionImplpublic Answer processRequest(Request request)
processRequest in interface NetworkReqListenerpublic void receivedSuccessMessage(Request request, Answer answer)
receivedSuccessMessage in interface EventListener<Request,Answer>public void onTimer(String timerName)
onTimer in class AppSessionImplpublic void timeoutExpired(Request request)
timeoutExpired in interface EventListener<Request,Answer>protected boolean isProvisional(long resultCode)
protected boolean isSuccess(long resultCode)
protected void setState(ServerRxSessionState newState)
protected void setState(ServerRxSessionState newState, boolean release)
public void release()
release in interface BaseSessionrelease in class AppRxSessionImplprotected void send(Event.Type type, AppRequestEvent request, AppAnswerEvent answer) throws InternalException
InternalExceptionprotected void dispatchEvent(AppEvent event) throws InternalException
InternalExceptionpublic int hashCode()
hashCode in class AppSessionImplpublic boolean equals(Object obj)
equals in class AppSessionImplCopyright © 2016. All Rights Reserved.