public class GqClientSessionImpl extends AppAuthSessionImpl implements GqClientSession, EventListener<Request,Answer>, NetworkReqListener
| Modifier and Type | Field and Description |
|---|---|
protected IClientAuthActionContext |
context |
protected IAuthMessageFactory |
factory |
protected ClientAuthSessionListener |
listener |
protected static org.slf4j.Logger |
logger |
protected Lock |
sendAndStateLock |
protected IClientAuthSessionData |
sessionData |
protected static String |
TIMER_NAME_TS |
appId, stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
GqClientSessionImpl(IClientAuthSessionData sessionData,
ISessionFactory sf,
ClientAuthSessionListener lst,
IAuthMessageFactory fct,
StateChangeListener<AppSession> scListener,
IClientAuthActionContext context,
boolean stateless) |
addStateChangeNotification, release, removeStateChangeNotificationgetCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValid, releaseaddStateChangeNotification, removeStateChangeNotificationprotected static final org.slf4j.Logger logger
protected Lock sendAndStateLock
protected transient IAuthMessageFactory factory
protected transient IClientAuthActionContext context
protected transient ClientAuthSessionListener listener
protected static final String TIMER_NAME_TS
protected IClientAuthSessionData sessionData
public GqClientSessionImpl(IClientAuthSessionData sessionData, ISessionFactory sf, ClientAuthSessionListener lst, IAuthMessageFactory fct, StateChangeListener<AppSession> scListener, IClientAuthActionContext context, boolean stateless)
public void sendAbortSessionAnswer(AbortSessionAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendAbortSessionAnswer in interface ClientAuthSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendAuthRequest(AppRequestEvent request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendAuthRequest in interface ClientAuthSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendReAuthAnswer(ReAuthAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendReAuthAnswer in interface ClientAuthSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendSessionTerminationRequest(SessionTermRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendSessionTerminationRequest in interface ClientAuthSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionprotected void send(org.jdiameter.client.impl.app.gq.Event.Type type,
AppEvent event)
throws InternalException
InternalExceptionpublic boolean isStateless()
isStateless in interface AppSessionprotected void setState(ClientAuthSessionState newState)
public <E> E getState(Class<E> eClass)
getState in interface StateMachinepublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionpublic boolean handleEventForStatelessSession(StateEvent event) throws InternalException, OverloadException
InternalExceptionOverloadExceptionpublic boolean handleEventForStatefulSession(StateEvent event) throws InternalException, OverloadException
InternalExceptionOverloadExceptionpublic void receivedSuccessMessage(Request request, Answer answer)
receivedSuccessMessage in interface EventListener<Request,Answer>public void timeoutExpired(Request request)
timeoutExpired in interface EventListener<Request,Answer>public Answer processRequest(Request request)
processRequest in interface NetworkReqListenerpublic boolean isReplicable()
isReplicable in interface BaseSessionisReplicable in class AppSessionImplprotected void startTsTimer()
throws IllegalArgumentException,
InternalException
protected void cancelTsTimer()
public void onTimer(String timerName)
onTimer in class AppSessionImplprotected AbortSessionAnswer createAbortSessionAnswer(Answer answer)
protected AbortSessionRequest createAbortSessionRequest(Request request)
protected ReAuthAnswer createReAuthAnswer(Answer answer)
protected ReAuthRequest createReAuthRequest(Request request)
protected SessionTermAnswer createSessionTermAnswer(Answer answer)
protected SessionTermRequest createSessionTermRequest(Request request)
protected Request createSessionTermRequest()
public int hashCode()
hashCode in class AppAuthSessionImplpublic boolean equals(Object obj)
equals in class AppAuthSessionImplCopyright © 2016. All Rights Reserved.