public class ClientRfSessionImpl extends AppRfSessionImpl implements EventListener<Request,Answer>, ClientRfSession
| Modifier and Type | Field and Description |
|---|---|
protected IClientRfActionContext |
context |
static int |
DELIVER_AND_GRANT |
static int |
GRANT_AND_LOSE |
protected ClientRfSessionListener |
listener |
protected IClientRfSessionData |
sessionData |
protected static String |
TIMER_NAME_INTERIM |
appId, sendAndStateLock, stateListenersappSessionData, scheduler, session, sessions, sf, timerFacility| Constructor and Description |
|---|
ClientRfSessionImpl(IClientRfSessionData sessionData,
ISessionFactory sessionFactory,
ClientRfSessionListener clientAccSessionListener,
IClientRfActionContext iClientRfActionContext,
StateChangeListener<AppSession> stateChangeListener,
ApplicationId applicationId) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkBufferSpace() |
protected Request |
createInterimRecord() |
protected Request |
createSessionTermRequest() |
boolean |
equals(Object obj) |
<E> E |
getState(Class<E> eClass) |
boolean |
handleEvent(StateEvent event) |
int |
hashCode() |
boolean |
isReplicable() |
boolean |
isStateless() |
void |
onTimer(String timerName) |
protected void |
processInterimIntervalAvp(StateEvent event) |
Answer |
processRequest(Request request) |
void |
receivedSuccessMessage(Request request,
Answer answer) |
void |
release() |
void |
sendAccountRequest(RfAccountingRequest accountRequest) |
protected void |
setState(IAppSessionState newState) |
protected void |
storeToBuffer(Request accountRequest) |
void |
timeoutExpired(Request request) |
addStateChangeNotification, createAccountAnswer, createAccountRequest, removeStateChangeNotificationgetCreationTime, getLastAccessedTime, getSessionAppId, getSessionId, getSessions, isAppSession, isValidclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSessionAppId, getSessionsgetCreationTime, getLastAccessedTime, getSessionId, isAppSession, isValidaddStateChangeNotification, removeStateChangeNotificationpublic static final int DELIVER_AND_GRANT
public static final int GRANT_AND_LOSE
protected transient IClientRfActionContext context
protected transient ClientRfSessionListener listener
protected static final String TIMER_NAME_INTERIM
protected IClientRfSessionData sessionData
public ClientRfSessionImpl(IClientRfSessionData sessionData, ISessionFactory sessionFactory, ClientRfSessionListener clientAccSessionListener, IClientRfActionContext iClientRfActionContext, StateChangeListener<AppSession> stateChangeListener, ApplicationId applicationId)
public void sendAccountRequest(RfAccountingRequest accountRequest) throws InternalException, IllegalStateException, RouteException, OverloadException
sendAccountRequest in interface ClientRfSessionInternalExceptionIllegalStateExceptionRouteExceptionOverloadExceptionprotected void storeToBuffer(Request accountRequest)
protected boolean checkBufferSpace()
protected void setState(IAppSessionState newState)
public boolean isStateless()
isStateless in interface AppSessionpublic boolean handleEvent(StateEvent event) throws InternalException, OverloadException
handleEvent in interface StateMachineInternalExceptionOverloadExceptionprotected void processInterimIntervalAvp(StateEvent event) throws InternalException
InternalExceptionpublic void onTimer(String timerName)
onTimer in class AppSessionImplpublic <E> E getState(Class<E> eClass)
getState in interface StateMachinepublic 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 boolean isReplicable()
isReplicable in interface BaseSessionisReplicable in class AppSessionImplprotected Request createInterimRecord()
protected Request createSessionTermRequest()
public int hashCode()
hashCode in class AppSessionImplpublic boolean equals(Object obj)
equals in class AppSessionImplpublic void release()
release in interface BaseSessionrelease in class AppRfSessionImplCopyright © 2016. All Rights Reserved.