public class ClientRxSessionImpl extends AppRxSessionImpl implements ClientRxSession, NetworkReqListener, EventListener<Request,Answer>
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
authAppIds |
protected byte[] |
buffer |
protected IClientRxSessionContext |
context |
protected ArrayList<Event> |
eventQueue |
protected IRxMessageFactory |
factory |
protected boolean |
isEventBased |
protected ClientRxSessionListener |
listener |
protected String |
originHost |
protected String |
originRealm |
protected IMessageParser |
parser |
protected Lock |
sendAndStateLock |
protected IClientRxSessionData |
sessionData |
protected static Set<Long> |
temporaryErrorCodes |
stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ClientRxSessionImpl(IClientRxSessionData sessionData,
IRxMessageFactory fct,
ISessionFactory sf,
ClientRxSessionListener lst,
IClientRxSessionContext ctx,
StateChangeListener<AppSession> stLst) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deliverAbortSessionRequest(RxAbortSessionRequest request) |
protected void |
deliverReAuthRequest(RxReAuthRequest request) |
protected void |
deliverRxAAAnswer(RxAARequest request,
RxAAAnswer answer) |
protected void |
deliverRxSessionTermAnswer(RxSessionTermRequest request,
RxSessionTermAnswer answer) |
protected void |
dispatch()
This makes checks on queue, moves it to proper state if event there is
present on Open state ;]
|
protected void |
dispatchEvent(AppEvent event) |
boolean |
equals(Object obj) |
<E> E |
getState(Class<E> stateType) |
boolean |
handleEvent(StateEvent event) |
protected boolean |
handleEventForEventBased(StateEvent event) |
protected boolean |
handleEventForSessionBased(StateEvent event) |
protected void |
handleFailureMessage(AppAnswerEvent event,
AppRequestEvent request,
Event.Type eventType) |
protected void |
handleSendFailure(Exception e,
Event.Type eventType,
Message request) |
int |
hashCode() |
boolean |
isEventBased() |
protected boolean |
isFailure(long code) |
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() |
void |
sendAARequest(RxAARequest request) |
void |
sendAbortSessionAnswer(RxAbortSessionAnswer answer) |
void |
sendReAuthAnswer(RxReAuthAnswer answer) |
void |
sendSessionTermRequest(RxSessionTermRequest request) |
protected void |
setState(ClientRxSessionState newState) |
protected void |
setState(ClientRxSessionState 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 ClientRxSessionListener listener
protected transient IClientRxSessionContext context
protected transient IMessageParser parser
protected IClientRxSessionData sessionData
protected long[] authAppIds
protected boolean isEventBased
protected byte[] buffer
protected String originHost
protected String originRealm
public ClientRxSessionImpl(IClientRxSessionData sessionData, IRxMessageFactory fct, ISessionFactory sf, ClientRxSessionListener lst, IClientRxSessionContext ctx, StateChangeListener<AppSession> stLst)
public void sendAARequest(RxAARequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendAARequest in interface ClientRxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendSessionTermRequest(RxSessionTermRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendSessionTermRequest in interface ClientRxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendReAuthAnswer(RxReAuthAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendReAuthAnswer in interface ClientRxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendAbortSessionAnswer(RxAbortSessionAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendAbortSessionAnswer in interface ClientRxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic boolean isStateless()
isStateless in interface AppSessionpublic boolean isEventBased()
public <E> E getState(Class<E> stateType)
getState in interface StateMachinepublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionprotected boolean handleEventForEventBased(StateEvent event) throws InternalException, OverloadException
InternalExceptionOverloadExceptionprotected boolean handleEventForSessionBased(StateEvent event) throws InternalException, OverloadException
InternalExceptionOverloadExceptionpublic Answer processRequest(Request request)
processRequest in interface NetworkReqListenerpublic void receivedSuccessMessage(Request request, Answer answer)
receivedSuccessMessage in interface EventListener<Request,Answer>public void timeoutExpired(Request request)
timeoutExpired in interface EventListener<Request,Answer>protected void setState(ClientRxSessionState newState)
protected void setState(ClientRxSessionState newState, boolean release)
public void release()
release in interface BaseSessionrelease in class AppRxSessionImplprotected void handleSendFailure(Exception e, Event.Type eventType, Message request) throws Exception
Exceptionprotected void handleFailureMessage(AppAnswerEvent event, AppRequestEvent request, Event.Type eventType)
protected void dispatch()
protected void deliverRxAAAnswer(RxAARequest request, RxAAAnswer answer)
protected void deliverRxSessionTermAnswer(RxSessionTermRequest request, RxSessionTermAnswer answer)
protected void deliverReAuthRequest(RxReAuthRequest request)
protected void deliverAbortSessionRequest(RxAbortSessionRequest request)
protected void dispatchEvent(AppEvent event) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
protected boolean isProvisional(long resultCode)
protected boolean isSuccess(long resultCode)
protected boolean isFailure(long code)
public boolean isReplicable()
isReplicable in interface BaseSessionisReplicable in class AppSessionImplpublic int hashCode()
hashCode in class AppSessionImplpublic boolean equals(Object obj)
equals in class AppSessionImplpublic void onTimer(String timerName)
onTimer in class AppSessionImplCopyright © 2016. All Rights Reserved.