public class RfSessionFactoryImpl extends Object implements IRfSessionFactory, ServerRfSessionListener, ClientRfSessionListener, IClientRfActionContext, IServerRfActionContext, StateChangeListener<AppSession>
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationId |
applicationId |
protected IClientRfActionContext |
clientContextListener |
protected ClientRfSessionListener |
clientSessionListener |
protected ISessionDatasource |
iss |
protected static org.slf4j.Logger |
logger |
protected long |
messageTimeout |
protected IServerRfActionContext |
serverContextListener |
protected ServerRfSessionListener |
serverSessionListener |
protected IAppSessionDataFactory<IRfSessionData> |
sessionDataFactory |
protected ISessionFactory |
sessionFactory |
protected StateChangeListener<AppSession> |
stateListener |
| Modifier | Constructor and Description |
|---|---|
protected |
RfSessionFactoryImpl() |
|
RfSessionFactoryImpl(SessionFactory sessionFactory) |
protected static final org.slf4j.Logger logger
protected ServerRfSessionListener serverSessionListener
protected StateChangeListener<AppSession> stateListener
protected ClientRfSessionListener clientSessionListener
protected IClientRfActionContext clientContextListener
protected IServerRfActionContext serverContextListener
protected ISessionDatasource iss
protected ISessionFactory sessionFactory
protected long messageTimeout
protected ApplicationId applicationId
protected IAppSessionDataFactory<IRfSessionData> sessionDataFactory
protected RfSessionFactoryImpl()
public RfSessionFactoryImpl(SessionFactory sessionFactory)
public ServerRfSessionListener getServerSessionListener()
getServerSessionListener in interface IRfSessionFactorypublic void setServerSessionListener(ServerRfSessionListener serverSessionListener)
setServerSessionListener in interface IRfSessionFactoryserverSessionListener - the serverSessionListener to setpublic StateChangeListener<AppSession> getStateListener()
getStateListener in interface IRfSessionFactorypublic void setStateListener(StateChangeListener<AppSession> stateListener)
setStateListener in interface IRfSessionFactorystateListener - the stateListener to setpublic ClientRfSessionListener getClientSessionListener()
getClientSessionListener in interface IRfSessionFactorypublic void setClientSessionListener(ClientRfSessionListener clientSessionListener)
setClientSessionListener in interface IRfSessionFactoryclientSessionListener - the clientSessionListener to setpublic IClientRfActionContext getClientContextListener()
getClientContextListener in interface IRfSessionFactorypublic void setClientContextListener(IClientRfActionContext clientContextListener)
setClientContextListener in interface IRfSessionFactoryclientContextListener - the clientContextListener to setpublic IServerRfActionContext getServerContextListener()
getServerContextListener in interface IRfSessionFactorypublic void setServerContextListener(IServerRfActionContext serverContextListener)
setServerContextListener in interface IRfSessionFactoryserverContextListener - the serverContextListener to setpublic long getMessageTimeout()
getMessageTimeout in interface IRfSessionFactorypublic void setMessageTimeout(long messageTimeout)
setMessageTimeout in interface IRfSessionFactorymessageTimeout - the messageTimeout to setpublic ISessionFactory getSessionFactory()
public void setSessionFactory(ISessionFactory sessionFactory)
sessionFactory - the sessionFactory to setpublic ApplicationId getApplicationId()
getApplicationId in interface IRfSessionFactorypublic void setApplicationId(ApplicationId id)
setApplicationId in interface IRfSessionFactorypublic AppSession getSession(String sessionId, Class<? extends AppSession> aClass)
getSession in interface IAppSessionFactorypublic AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args)
getNewSession in interface IAppSessionFactorypublic void stateChanged(Enum oldState, Enum newState)
stateChanged in interface StateChangeListener<AppSession>public void stateChanged(AppSession source, Enum oldState, Enum newState)
stateChanged in interface StateChangeListener<AppSession>public void doRfAccountingRequestEvent(ServerRfSession appSession, RfAccountingRequest acr) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doRfAccountingRequestEvent in interface ServerRfSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doRfAccountingAnswerEvent(ClientRfSession appSession, RfAccountingRequest acr, RfAccountingAnswer aca) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doRfAccountingAnswerEvent in interface ClientRfSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doOtherEvent(AppSession appSession, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doOtherEvent in interface ClientRfSessionListenerdoOtherEvent in interface ServerRfSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void disconnectUserOrDev(ClientRfSession appSession, Request sessionTermRequest) throws InternalException
IClientRfActionContextdisconnectUserOrDev in interface IClientRfActionContextsessionTermRequest - instance of STR which will be sent to serverInternalExceptionpublic boolean failedSendRecord(ClientRfSession appSession, Request rfRequest) throws InternalException
IClientRfActionContextfailedSendRecord in interface IClientRfActionContextrfRequest - accounting request recordInternalExceptionpublic void interimIntervalElapses(ClientRfSession appSession, Request interimRequest) throws InternalException
IClientRfActionContextinterimIntervalElapses in interface IClientRfActionContextinterimRequest - instance of interim message which will be sent to serverInternalExceptionpublic void sessionTimeoutElapses(ServerRfSession appSession) throws InternalException
sessionTimeoutElapses in interface IServerRfActionContextInternalExceptionpublic void sessionTimerStarted(ServerRfSession appSession, ScheduledFuture timer) throws InternalException
sessionTimerStarted in interface IServerRfActionContextInternalExceptionpublic void sessionTimerCanceled(ServerRfSession appSession, ScheduledFuture timer) throws InternalException
sessionTimerCanceled in interface IServerRfActionContextInternalExceptionCopyright © 2016. All Rights Reserved.