public interface RfServerSessionActivity
An RfServerSessionActivity represents an offline charging session for accounting servers.
A single RfServerSessionActivity will be created for the Diameter session. All requests received for the session will be fired as events on the same RfServerSessionActivity.
Modifier and Type | Method and Description |
---|---|
AccountingAnswer |
createRfAccountingAnswer()
Create an Accounting-Answer with the Acct-Application-Id set to 3.
|
AccountingAnswer |
createRfAccountingAnswer(AccountingRequest acr)
Create an Accounting-Answer with some AVPs populated from the provided Accounting-Request.
|
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 |
sendAccountingAnswer(AccountingAnswer accountingAnswer)
Send an Accounting Answer.
|
void sendAccountingAnswer(AccountingAnswer accountingAnswer) throws java.lang.IllegalArgumentException, SendException
accountingAnswer
- answer message to sendSendException
- if the message could not be sentjava.lang.IllegalArgumentException
- if accountingAnswer is missing any required AVPsAccountingAnswer createRfAccountingAnswer()
AccountingAnswer createRfAccountingAnswer(AccountingRequest acr)
The ACR will contain the AVPs specified in createRfAccountingAnswer()
and the following AVPs from the Accounting-Request:
acr
- Accounting-Request to copy AVPs fromjava.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()