Interface RfClientSessionActivity
-
public interface RfClientSessionActivity
An RfClientSessionActivity represents an offline charging session for accounting clients.
All requests for the session must be sent via the same RfClientSessionActivity.
All responses related to the session will be received as events fired on the same RfClientSessionActivity.
- Author:
- OpenCloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
endActivity()
End this activity.long
getLastReceiveTime()
Returns the timestamp for the last message received on this activity, or 0 if no timestamp is available.long
getLastSendTime()
Returns the timestamp for the last message sent on this activity, or 0 if no timestamp is available.String
getSessionId()
Returns the session ID of this session.void
sendAccountingRequest(AccountingRequest accountingRequest)
Send an Accounting Request.
-
-
-
Method Detail
-
sendAccountingRequest
void sendAccountingRequest(AccountingRequest accountingRequest) throws IllegalArgumentException, SendException
Send an Accounting Request. An event containing the answer will be fired on this activity.- Parameters:
accountingRequest
- the Accounting-Request message to send- Throws:
IllegalArgumentException
- if accountingRequest is missing any required AVPsSendException
-
getSessionId
String getSessionId()
Returns the session ID of this session.
-
endActivity
void endActivity() throws IllegalStateException
End this activity.- Throws:
IllegalStateException
- if this activity represents a stateful session that is not idle
-
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.
-
-