public class ServerCCASessionImpl extends AppCCASessionImpl implements ServerCCASession, NetworkReqListener, EventListener<Request,Answer>
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
authAppIds |
protected IServerCCASessionContext |
context |
protected ICCAMessageFactory |
factory |
protected ServerCCASessionListener |
listener |
protected Lock |
sendAndStateLock |
protected IServerCCASessionData |
sessionData |
protected static String |
TCC_TIMER_NAME |
stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ServerCCASessionImpl(IServerCCASessionData data,
ICCAMessageFactory fct,
ISessionFactory sf,
ServerCCASessionListener lst,
IServerCCASessionContext ctx,
StateChangeListener<AppSession> stLst) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatchEvent(AppEvent event) |
boolean |
equals(Object obj) |
<E> E |
getState(Class<E> stateType) |
boolean |
handleEvent(StateEvent event) |
int |
hashCode() |
protected boolean |
isProvisional(long resultCode) |
boolean |
isReplicable() |
boolean |
isStateless() |
protected boolean |
isSuccess(long resultCode) |
void |
onTimer(String timerName) |
Answer |
processRequest(Request request) |
void |
receivedSuccessMessage(Request request,
Answer answer) |
void |
release() |
protected void |
send(Event.Type type,
AppRequestEvent request,
AppAnswerEvent answer) |
void |
sendCreditControlAnswer(JCreditControlAnswer answer) |
void |
sendReAuthRequest(ReAuthRequest request) |
protected void |
setState(ServerCCASessionState newState) |
protected void |
setState(ServerCCASessionState newState,
boolean release) |
void |
timeoutExpired(Request request) |
String |
toString() |
addStateChangeNotification, removeStateChangeNotificationgetCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValidaddStateChangeNotification, removeStateChangeNotificationprotected IServerCCASessionData sessionData
protected Lock sendAndStateLock
protected transient ICCAMessageFactory factory
protected transient IServerCCASessionContext context
protected transient ServerCCASessionListener listener
protected static final String TCC_TIMER_NAME
protected long[] authAppIds
public ServerCCASessionImpl(IServerCCASessionData data, ICCAMessageFactory fct, ISessionFactory sf, ServerCCASessionListener lst, IServerCCASessionContext ctx, StateChangeListener<AppSession> stLst)
public void sendCreditControlAnswer(JCreditControlAnswer answer) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendCreditControlAnswer in interface ServerCCASessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic void sendReAuthRequest(ReAuthRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException
sendReAuthRequest in interface ServerCCASessionInternalExceptionIllegalDiameterStateExceptionRouteExceptionOverloadExceptionpublic boolean isStateless()
isStateless in interface AppSessionpublic <E> E getState(Class<E> stateType)
getState in interface StateMachinepublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionpublic boolean isReplicable()
isReplicable in interface BaseSessionisReplicable in class AppSessionImplpublic 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 void onTimer(String timerName)
onTimer in class AppSessionImplprotected boolean isProvisional(long resultCode)
protected boolean isSuccess(long resultCode)
protected void setState(ServerCCASessionState newState)
protected void setState(ServerCCASessionState newState, boolean release)
public void release()
release in interface BaseSessionrelease in class AppCCASessionImplprotected void send(Event.Type type, AppRequestEvent request, AppAnswerEvent answer) throws InternalException
InternalExceptionprotected void dispatchEvent(AppEvent event) throws InternalException
InternalExceptionpublic int hashCode()
hashCode in class AppSessionImplpublic boolean equals(Object obj)
equals in class AppSessionImplCopyright © 2016. All Rights Reserved.