public class ServerRoSessionImpl extends AppRoSessionImpl implements ServerRoSession, NetworkReqListener, EventListener<Request,Answer>
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
authAppIds |
protected IServerRoSessionContext |
context |
protected IRoMessageFactory |
factory |
protected ServerRoSessionListener |
listener |
protected Lock |
sendAndStateLock |
protected IServerRoSessionData |
sessionData |
protected static String |
TCC_TIMER_NAME |
stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ServerRoSessionImpl(IServerRoSessionData sessionData,
IRoMessageFactory fct,
ISessionFactory sf,
ServerRoSessionListener lst,
IServerRoSessionContext ctx,
StateChangeListener<AppSession> stLst) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatchEvent(AppEvent event) |
<E> E |
getState(Class<E> stateType) |
boolean |
handleEvent(StateEvent event) |
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(RoCreditControlAnswer answer) |
void |
sendReAuthRequest(ReAuthRequest request) |
protected void |
setState(ServerRoSessionState newState) |
protected void |
setState(ServerRoSessionState newState,
boolean release) |
void |
timeoutExpired(Request request) |
addStateChangeNotification, removeStateChangeNotificationequals, getCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, hashCode, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValidaddStateChangeNotification, removeStateChangeNotificationprotected Lock sendAndStateLock
protected transient IRoMessageFactory factory
protected transient IServerRoSessionContext context
protected transient ServerRoSessionListener listener
protected static final String TCC_TIMER_NAME
protected long[] authAppIds
protected IServerRoSessionData sessionData
public ServerRoSessionImpl(IServerRoSessionData sessionData, IRoMessageFactory fct, ISessionFactory sf, ServerRoSessionListener lst, IServerRoSessionContext ctx, StateChangeListener<AppSession> stLst)
public void sendCreditControlAnswer(RoCreditControlAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendCreditControlAnswer in interface ServerRoSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendReAuthRequest(ReAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendReAuthRequest in interface ServerRoSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic 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(ServerRoSessionState newState)
protected void setState(ServerRoSessionState newState, boolean release)
public void release()
release in interface BaseSessionrelease in class AppRoSessionImplprotected void send(Event.Type type, AppRequestEvent request, AppAnswerEvent answer) throws InternalException
InternalExceptionprotected void dispatchEvent(AppEvent event) throws InternalException
InternalExceptionCopyright © 2016. All Rights Reserved.