Interface RoSessionActivity
-
- All Known Subinterfaces:
RoClientSessionActivity,RoServerSessionActivity
public interface RoSessionActivity- Author:
- OpenCloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendActivity()End this activity.CcSessionFailovergetCcSessionFailover()Returns the value of the CcSessionFailover AVP for session.CreditControlSessionStategetCcSessionState()Returns the state of this credit control session, which will affect what types of messages may be sent.CreditControlFailureHandlinggetCreditControlFailureHandling()Returns the value of the CreditControlFailureHandling AVP for session.DirectDebitingFailureHandlinggetDirectDebitingFailureHandling()Returns the value of the DirectDebitingFailureHandling AVP for session.longgetLastReceiveTime()Returns the timestamp for the last message received on this activity, or 0 if no timestamp is available.longgetLastSendTime()Returns the timestamp for the last message sent on this activity, or 0 if no timestamp is available.RoMessageFactorygetRoMessageFactory()Get a RoMessageFactory to create Ro messages and AVPs.StringgetSessionId()Returns the session ID of the credit control session, which uniquely identifies the session.StringgetTrackingKey()Return the tracking key for this session.booleanhasCcSessionFailover()Returns true if value of CcSessionFailover AVP is known for session.booleanhasCreditControlFailureHandling()Returns true if value of CreditControlFailureHandling AVP is known for session.booleanhasDirectDebitingFailureHandling()Returns true if value of DirectDebitingFailureHandling AVP is known for session.voidstartReplicating()Requests that this session starts being replicated from now on.
-
-
-
Method Detail
-
getRoMessageFactory
RoMessageFactory getRoMessageFactory()
Get a RoMessageFactory to create Ro messages and AVPs.
-
getSessionId
String getSessionId()
Returns the session ID of the credit control session, which uniquely identifies the session.
-
getCcSessionState
CreditControlSessionState getCcSessionState()
Returns the state of this credit control session, which will affect what types of messages may be sent.
-
hasCcSessionFailover
boolean hasCcSessionFailover()
Returns true if value of CcSessionFailover AVP is known for session. This is initially based on configuration and can be overwritten by sent/received CreditControlAnswer(s).
-
getCcSessionFailover
CcSessionFailover getCcSessionFailover()
Returns the value of the CcSessionFailover AVP for session. This is initially based on configuration and can be overwritten by sent/received CreditControlAnswer(s).- Returns:
- the value of the CcSessionFailover AVP or null if it is undefined for this session.
-
hasDirectDebitingFailureHandling
boolean hasDirectDebitingFailureHandling()
Returns true if value of DirectDebitingFailureHandling AVP is known for session. This is initially based on configuration and can be overwritten by sent/received CreditControlAnswer(s).
-
getDirectDebitingFailureHandling
DirectDebitingFailureHandling getDirectDebitingFailureHandling()
Returns the value of the DirectDebitingFailureHandling AVP for session. This is initially based on configuration and can be overwritten by sent/received CreditControlAnswer(s).- Returns:
- the value of the DirectDebitingFailureHandling AVP or null if it is undefined for this session.
-
hasCreditControlFailureHandling
boolean hasCreditControlFailureHandling()
Returns true if value of CreditControlFailureHandling AVP is known for session. This is initially based on configuration and can be overwritten by sent/received CreditControlAnswer(s).
-
getCreditControlFailureHandling
CreditControlFailureHandling getCreditControlFailureHandling()
Returns the value of the CreditControlFailureHandling AVP for session. This is initially based on configuration and can be overwritten by sent/received CreditControlAnswer(s).- Returns:
- the value of the CreditControlFailureHandling AVP or null if it is undefined for this session.
-
endActivity
void endActivity()
End this activity. This does not send any messages, it simply ends the activity in the SLEE.
-
getLastSendTime
long getLastSendTime()
Returns the timestamp for the last message sent on this activity, or 0 if no timestamp is available.
-
getLastReceiveTime
long getLastReceiveTime()
Returns the timestamp for the last message received on this activity, or 0 if no timestamp is available.
-
startReplicating
void startReplicating()
Requests that this session starts being replicated from now on.Calling this method will only have an effect if:
-
activity replication is enabled
(the
ReplicateActivitiesconfiguration property is set totrue), -
activities are not set to replicate by default
(the
ReplicateByDefaultconfiguration property is set tofalse), - the namespace in which the resource adaptor is deployed is configured with a replication resource that uses the key value store replication method, and
- this activity has not previously been marked for replication.
-
activity replication is enabled
(the
-
getTrackingKey
String getTrackingKey()
Return the tracking key for this session.- Returns:
- the tracking key for this session
-
-