public class AccSessionFactoryImpl extends Object implements IAccSessionFactory, IAccMessageFactory, ServerAccSessionListener, ClientAccSessionListener, IClientAccActionContext, IServerAccActionContext, StateChangeListener<AppSession>
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationId |
applicationId |
protected IClientAccActionContext |
clientContextListener |
protected ClientAccSessionListener |
clientSessionListener |
protected ISessionDatasource |
iss |
protected org.slf4j.Logger |
logger |
protected IAccMessageFactory |
messageFactory |
protected IServerAccActionContext |
serverContextListener |
protected ServerAccSessionListener |
serverSessionListener |
protected IAppSessionDataFactory<IAccSessionData> |
sessionDataFactory |
protected ISessionFactory |
sessionFactory |
protected StateChangeListener<AppSession> |
stateListener |
| Modifier | Constructor and Description |
|---|---|
protected |
AccSessionFactoryImpl() |
|
AccSessionFactoryImpl(SessionFactory sessionFactory) |
protected org.slf4j.Logger logger
protected ServerAccSessionListener serverSessionListener
protected StateChangeListener<AppSession> stateListener
protected ClientAccSessionListener clientSessionListener
protected IClientAccActionContext clientContextListener
protected IServerAccActionContext serverContextListener
protected ISessionDatasource iss
protected ISessionFactory sessionFactory
protected ApplicationId applicationId
protected IAccMessageFactory messageFactory
protected IAppSessionDataFactory<IAccSessionData> sessionDataFactory
protected AccSessionFactoryImpl()
public AccSessionFactoryImpl(SessionFactory sessionFactory)
public ServerAccSessionListener getServerSessionListener()
getServerSessionListener in interface IAccSessionFactorypublic void setServerSessionListener(ServerAccSessionListener serverSessionListener)
setServerSessionListener in interface IAccSessionFactoryserverSessionListener - the serverSessionListener to setpublic StateChangeListener<AppSession> getStateListener()
getStateListener in interface IAccSessionFactorypublic void setStateListener(StateChangeListener<AppSession> stateListener)
setStateListener in interface IAccSessionFactorystateListener - the stateListener to setpublic ClientAccSessionListener getClientSessionListener()
getClientSessionListener in interface IAccSessionFactorypublic void setClientSessionListener(ClientAccSessionListener clientSessionListener)
setClientSessionListener in interface IAccSessionFactoryclientSessionListener - the clientSessionListener to setpublic IClientAccActionContext getClientContextListener()
getClientContextListener in interface IAccSessionFactorypublic void setClientContextListener(IClientAccActionContext clientContextListener)
setClientContextListener in interface IAccSessionFactoryclientContextListener - the clientContextListener to setpublic IServerAccActionContext getServerContextListener()
getServerContextListener in interface IAccSessionFactorypublic void setServerContextListener(IServerAccActionContext serverContextListener)
setServerContextListener in interface IAccSessionFactoryserverContextListener - the serverContextListener to setpublic void setMessageFactory(IAccMessageFactory messageFactory)
setMessageFactory in interface IAccSessionFactorypublic IAccMessageFactory getMessageFactory()
getMessageFactory in interface IAccSessionFactorypublic ISessionFactory getSessionFactory()
public void setSessionFactory(ISessionFactory sessionFactory)
sessionFactory - the sessionFactory to setpublic ApplicationId getApplicationId()
getApplicationId in interface IAccMessageFactorygetApplicationId in interface IAccSessionFactorypublic void setApplicationId(ApplicationId id)
setApplicationId in interface IAccSessionFactorypublic 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 doAccRequestEvent(ServerAccSession appSession, AccountRequest acr) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doAccRequestEvent in interface ServerAccSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doAccAnswerEvent(ClientAccSession appSession, AccountRequest acr, AccountAnswer aca) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doAccAnswerEvent in interface ClientAccSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doOtherEvent(AppSession appSession, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doOtherEvent in interface ClientAccSessionListenerdoOtherEvent in interface ServerAccSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void disconnectUserOrDev(ClientAccSession appSession, Request sessionTermRequest) throws InternalException
IClientAccActionContextdisconnectUserOrDev in interface IClientAccActionContextsessionTermRequest - instance of STR which will be sent to serverInternalExceptionpublic boolean failedSendRecord(ClientAccSession appSession, Request accRequest) throws InternalException
IClientAccActionContextfailedSendRecord in interface IClientAccActionContextaccRequest - accounting request recordInternalExceptionpublic void interimIntervalElapses(ClientAccSession appSession, Request interimRequest) throws InternalException
IClientAccActionContextinterimIntervalElapses in interface IClientAccActionContextinterimRequest - instance of interim message which will be sent to serverInternalExceptionpublic void sessionTimeoutElapses(ServerAccSession appSession) throws InternalException
sessionTimeoutElapses in interface IServerAccActionContextInternalExceptionpublic void sessionTimerStarted(ServerAccSession appSession, ScheduledFuture timer) throws InternalException
sessionTimerStarted in interface IServerAccActionContextInternalExceptionpublic void sessionTimerCanceled(ServerAccSession appSession, ScheduledFuture timer) throws InternalException
sessionTimerCanceled in interface IServerAccActionContextInternalExceptionpublic int getAccMessageCommandCode()
getAccMessageCommandCode in interface IAccMessageFactorypublic AccountRequest createAccRequest(Request request)
createAccRequest in interface IAccMessageFactorypublic AccountAnswer createAccAnswer(Answer answer)
createAccAnswer in interface IAccMessageFactoryCopyright © 2016. All Rights Reserved.