public class ShSessionFactoryImpl extends Object implements IShSessionFactory, StateChangeListener<AppSession>, ClientShSessionListener, ServerShSessionListener, IShMessageFactory
| Modifier and Type | Field and Description |
|---|---|
protected static long |
applicationId |
protected ClientShSessionListener |
clientShSessionListener |
protected org.slf4j.Logger |
logger |
protected IShMessageFactory |
messageFactory |
protected long |
messageTimeout |
protected ServerShSessionListener |
serverShSessionListener |
protected IAppSessionDataFactory<IShSessionData> |
sessionDataFactory |
protected ISessionDatasource |
sessionDataSource |
protected ISessionFactory |
sessionFactory |
protected StateChangeListener<AppSession> |
stateChangeListener |
| Constructor and Description |
|---|
ShSessionFactoryImpl(SessionFactory sessionFactory) |
protected org.slf4j.Logger logger
protected ClientShSessionListener clientShSessionListener
protected ServerShSessionListener serverShSessionListener
protected IShMessageFactory messageFactory
protected StateChangeListener<AppSession> stateChangeListener
protected ISessionFactory sessionFactory
protected ISessionDatasource sessionDataSource
protected IAppSessionDataFactory<IShSessionData> sessionDataFactory
protected long messageTimeout
protected static final long applicationId
public ShSessionFactoryImpl(SessionFactory sessionFactory)
public ClientShSessionListener getClientShSessionListener()
getClientShSessionListener in interface IShSessionFactorypublic void setClientShSessionListener(ClientShSessionListener clientShSessionListener)
setClientShSessionListener in interface IShSessionFactoryclientShSessionListener - the clientShSessionListener to setpublic ServerShSessionListener getServerShSessionListener()
getServerShSessionListener in interface IShSessionFactorypublic void setServerShSessionListener(ServerShSessionListener serverShSessionListener)
setServerShSessionListener in interface IShSessionFactoryserverShSessionListener - the serverShSessionListener to setpublic IShMessageFactory getMessageFactory()
getMessageFactory in interface IShSessionFactorypublic void setMessageFactory(IShMessageFactory messageFactory)
setMessageFactory in interface IShSessionFactorymessageFactory - the messageFactory to setpublic StateChangeListener<AppSession> getStateChangeListener()
getStateChangeListener in interface IShSessionFactorypublic void setStateChangeListener(StateChangeListener<AppSession> stateChangeListener)
setStateChangeListener in interface IShSessionFactorystateChangeListener - the stateChangeListener to setpublic AppSession getNewSession(String sessionId, Class<? extends AppSession> aClass, ApplicationId applicationId, Object[] args)
getNewSession in interface IAppSessionFactorypublic AppSession getSession(String sessionId, Class<? extends AppSession> aClass)
getSession 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 doOtherEvent(AppSession session, AppRequestEvent request, AppAnswerEvent answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doOtherEvent in interface ClientShSessionListenerdoOtherEvent in interface ServerShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doProfileUpdateAnswerEvent(ClientShSession session, ProfileUpdateRequest request, ProfileUpdateAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doProfileUpdateAnswerEvent in interface ClientShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doPushNotificationRequestEvent(ClientShSession session, PushNotificationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doPushNotificationRequestEvent in interface ClientShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doSubscribeNotificationsAnswerEvent(ClientShSession session, SubscribeNotificationsRequest request, SubscribeNotificationsAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doSubscribeNotificationsAnswerEvent in interface ClientShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doUserDataAnswerEvent(ClientShSession session, UserDataRequest request, UserDataAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doUserDataAnswerEvent in interface ClientShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doProfileUpdateRequestEvent(ServerShSession session, ProfileUpdateRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doProfileUpdateRequestEvent in interface ServerShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doPushNotificationAnswerEvent(ServerShSession session, PushNotificationRequest request, PushNotificationAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doPushNotificationAnswerEvent in interface ServerShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doSubscribeNotificationsRequestEvent(ServerShSession session, SubscribeNotificationsRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doSubscribeNotificationsRequestEvent in interface ServerShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void doUserDataRequestEvent(ServerShSession session, UserDataRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
doUserDataRequestEvent in interface ServerShSessionListenerInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic AppAnswerEvent createProfileUpdateAnswer(Answer answer)
createProfileUpdateAnswer in interface IShMessageFactorypublic AppRequestEvent createProfileUpdateRequest(Request request)
createProfileUpdateRequest in interface IShMessageFactorypublic AppAnswerEvent createPushNotificationAnswer(Answer answer)
createPushNotificationAnswer in interface IShMessageFactorypublic AppRequestEvent createPushNotificationRequest(Request request)
createPushNotificationRequest in interface IShMessageFactorypublic AppAnswerEvent createSubscribeNotificationsAnswer(Answer answer)
createSubscribeNotificationsAnswer in interface IShMessageFactorypublic AppRequestEvent createSubscribeNotificationsRequest(Request request)
createSubscribeNotificationsRequest in interface IShMessageFactorypublic AppAnswerEvent createUserDataAnswer(Answer answer)
createUserDataAnswer in interface IShMessageFactorypublic AppRequestEvent createUserDataRequest(Request request)
createUserDataRequest in interface IShMessageFactorypublic long getApplicationId()
getApplicationId in interface IShMessageFactorypublic long getMessageTimeout()
getMessageTimeout in interface IShMessageFactoryCopyright © 2016. All Rights Reserved.