public class ShServerSessionImpl extends ShSession implements ServerShSession, EventListener<Request,Answer>, NetworkReqListener
| Modifier and Type | Field and Description |
|---|---|
protected long |
appId |
protected IShMessageFactory |
factory |
protected ServerShSessionListener |
listener |
protected Lock |
sendAndStateLock |
protected IShServerSessionData |
sessionData |
stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ShServerSessionImpl(IShServerSessionData sessionData,
IShMessageFactory fct,
ISessionFactory sf,
ServerShSessionListener lst) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatchEvent(AppEvent event) |
boolean |
equals(Object obj) |
protected long |
extractExpiryTime(Message answer) |
<E> E |
getState(Class<E> stateType) |
boolean |
handleEvent(StateEvent event) |
int |
hashCode() |
boolean |
isReplicable() |
boolean |
isStateless() |
void |
onTimer(String timerName) |
Answer |
processRequest(Request request) |
void |
receivedSuccessMessage(Request request,
Answer answer) |
void |
release() |
protected void |
send(org.jdiameter.server.impl.app.sh.Event.Type type,
AppEvent request,
AppEvent answer) |
void |
sendProfileUpdateAnswer(ProfileUpdateAnswer answer) |
void |
sendPushNotificationRequest(PushNotificationRequest request) |
void |
sendSubscribeNotificationsAnswer(SubscribeNotificationsAnswer answer) |
void |
sendUserDataAnswer(UserDataAnswer answer) |
void |
timeoutExpired(Request request) |
addStateChangeNotification, removeStateChangeNotificationgetCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValidaddStateChangeNotification, removeStateChangeNotificationprotected Lock sendAndStateLock
protected transient IShMessageFactory factory
protected transient ServerShSessionListener listener
protected IShServerSessionData sessionData
protected long appId
public ShServerSessionImpl(IShServerSessionData sessionData, IShMessageFactory fct, ISessionFactory sf, ServerShSessionListener lst)
public void sendProfileUpdateAnswer(ProfileUpdateAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendProfileUpdateAnswer in interface ServerShSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendPushNotificationRequest(PushNotificationRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendPushNotificationRequest in interface ServerShSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendSubscribeNotificationsAnswer(SubscribeNotificationsAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendSubscribeNotificationsAnswer in interface ServerShSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendUserDataAnswer(UserDataAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendUserDataAnswer in interface ServerShSessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void receivedSuccessMessage(Request request, Answer answer)
receivedSuccessMessage in interface EventListener<Request,Answer>public void timeoutExpired(Request request)
timeoutExpired in interface EventListener<Request,Answer>public Answer processRequest(Request request)
processRequest in interface NetworkReqListenerpublic <E> E getState(Class<E> stateType)
getState in interface StateMachinepublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionpublic boolean isStateless()
isStateless in interface AppSessionprotected void send(org.jdiameter.server.impl.app.sh.Event.Type type,
AppEvent request,
AppEvent answer)
throws InternalException
InternalExceptionprotected void dispatchEvent(AppEvent event) throws InternalException
InternalExceptionpublic void release()
release in interface BaseSessionrelease in class ShSessionprotected long extractExpiryTime(Message answer)
public boolean isReplicable()
isReplicable in interface BaseSessionisReplicable in class AppSessionImplpublic int hashCode()
hashCode in class AppSessionImplpublic boolean equals(Object obj)
equals in class AppSessionImplpublic void onTimer(String timerName)
onTimer in class AppSessionImplCopyright © 2016. All Rights Reserved.