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.
Modifier and Type | Method and 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.
|
java.lang.String |
getSessionId()
Returns the session ID of this session.
|
void |
sendAccountingRequest(AccountingRequest accountingRequest)
Send an Accounting Request.
|
void sendAccountingRequest(AccountingRequest accountingRequest) throws java.lang.IllegalArgumentException, SendException
accountingRequest
- the Accounting-Request message to sendif
- the message could not be sentjava.lang.IllegalArgumentException
- if accountingRequest is missing any required AVPsSendException
java.lang.String getSessionId()
void endActivity() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if this activity represents a stateful session that is not idlelong getLastSendTime()
long getLastReceiveTime()