public class ServerRfSessionImpl extends AppRfSessionImpl implements EventListener<Request,Answer>, ServerRfSession, NetworkReqListener
| Modifier and Type | Field and Description |
|---|---|
protected IServerRfActionContext |
context |
protected ServerRfSessionListener |
listener |
protected IServerRfSessionData |
sessionData |
protected static String |
TIMER_NAME_TS |
appId, sendAndStateLock, stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ServerRfSessionImpl(IServerRfSessionData sessionData,
ISessionFactory sessionFactory,
ServerRfSessionListener serverSessionListener,
IServerRfActionContext serverContextListener,
StateChangeListener<AppSession> stLst,
long tsTimeout,
boolean stateless) |
| Modifier and Type | Method and Description |
|---|---|
protected Answer |
createEventAnswer(Request request) |
protected Answer |
createInterimAnswer(Request request) |
protected Answer |
createStartAnswer(Request request) |
protected Answer |
createStopAnswer(Request request) |
<E> E |
getState(Class<E> eClass) |
boolean |
handleEvent(StateEvent event) |
boolean |
handleEventForStatefulMode(StateEvent event) |
boolean |
handleEventForStatelessMode(StateEvent event) |
boolean |
isReplicable() |
boolean |
isStateless() |
void |
onTimer(String timerName) |
Answer |
processRequest(Request request) |
void |
receivedSuccessMessage(Request request,
Answer answer) |
void |
release() |
void |
sendAccountAnswer(RfAccountingAnswer accountAnswer) |
protected void |
setState(IAppSessionState newState) |
void |
timeoutExpired(Request request) |
addStateChangeNotification, createAccountAnswer, createAccountRequest, removeStateChangeNotificationequals, getCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, hashCode, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValidaddStateChangeNotification, removeStateChangeNotificationprotected transient IServerRfActionContext context
protected transient ServerRfSessionListener listener
protected static final String TIMER_NAME_TS
protected IServerRfSessionData sessionData
public ServerRfSessionImpl(IServerRfSessionData sessionData, ISessionFactory sessionFactory, ServerRfSessionListener serverSessionListener, IServerRfActionContext serverContextListener, StateChangeListener<AppSession> stLst, long tsTimeout, boolean stateless)
public void sendAccountAnswer(RfAccountingAnswer accountAnswer) throws InternalException, IllegalStateException, RouteException, OverloadException
sendAccountAnswer in interface ServerRfSessionInternalExceptionIllegalStateExceptionRouteExceptionOverloadExceptionpublic boolean isStateless()
isStateless in interface AppSessionprotected void setState(IAppSessionState newState)
public boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionpublic boolean handleEventForStatelessMode(StateEvent event) throws InternalException, OverloadException
InternalExceptionOverloadExceptionpublic boolean handleEventForStatefulMode(StateEvent event) throws InternalException, OverloadException
InternalExceptionOverloadExceptionpublic void onTimer(String timerName)
onTimer in class AppSessionImplpublic <E> E getState(Class<E> eClass)
getState in interface StateMachinepublic 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 boolean isReplicable()
isReplicable in interface BaseSessionisReplicable in class AppSessionImplpublic void release()
release in interface BaseSessionrelease in class AppRfSessionImplCopyright © 2016. All Rights Reserved.