public class ServerGxSessionImpl extends AppGxSessionImpl implements ServerGxSession, NetworkReqListener, EventListener<Request,Answer>
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
authAppIds |
protected IServerGxSessionContext |
context |
protected IGxMessageFactory |
factory |
protected ServerGxSessionListener |
listener |
protected Lock |
sendAndStateLock |
protected IServerGxSessionData |
sessionData |
protected static String |
TCC_TIMER_NAME |
stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ServerGxSessionImpl(IServerGxSessionData sessionData,
IGxMessageFactory fct,
ISessionFactory sf,
ServerGxSessionListener lst,
IServerGxSessionContext 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 |
sendCreditControlAnswer(GxCreditControlAnswer answer) |
void |
sendGxReAuthRequest(GxReAuthRequest request) |
protected void |
setState(ServerGxSessionState newState) |
protected void |
setState(ServerGxSessionState 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 IGxMessageFactory factory
protected transient IServerGxSessionContext context
protected transient ServerGxSessionListener listener
protected static final String TCC_TIMER_NAME
protected long[] authAppIds
protected IServerGxSessionData sessionData
public ServerGxSessionImpl(IServerGxSessionData sessionData, IGxMessageFactory fct, ISessionFactory sf, ServerGxSessionListener lst, IServerGxSessionContext ctx, StateChangeListener<AppSession> stLst)
public void sendCreditControlAnswer(GxCreditControlAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendCreditControlAnswer in interface ServerGxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendGxReAuthRequest(GxReAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendGxReAuthRequest in interface ServerGxSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic 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 timeoutExpired(Request request)
timeoutExpired in interface EventListener<Request,Answer>public void onTimer(String timerName)
onTimer in class AppSessionImplprotected boolean isProvisional(long resultCode)
protected boolean isSuccess(long resultCode)
protected void setState(ServerGxSessionState newState)
protected void setState(ServerGxSessionState newState, boolean release)
public void release()
release in interface BaseSessionrelease in class AppGxSessionImplprotected 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.