Interface AccountingClientSessionActivity
-
- All Superinterfaces:
AccountingSessionActivity
public interface AccountingClientSessionActivity extends AccountingSessionActivity
An AccountingClientSessionActivity represents an accounting session for Diameter accounting clients. All requests for the session must be sent via the same AccountingClientSessionActivity. All responses related to the session will be received as events fired on the same AccountingClientSessionActivity.- Author:
- OpenCloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccountingRequest
createAccountingRequest(AccountingRecordType accountingRecordType)
Create an Accounting-Request message populated with the following AVPs: Accounting-Record-Type: as per accountingRecordType parameter Acct-Application-Id: the value 3 as specified by RFC6733void
sendAccountingRequest(AccountingRequest accountingRequest)
Send an Accounting Request.-
Methods inherited from interface org.jainslee.resources.diameter.base.AccountingSessionActivity
endActivity, getLastReceiveTime, getLastSendTime, getMessageFactory, getSessionId, getSessionState
-
-
-
-
Method Detail
-
createAccountingRequest
AccountingRequest createAccountingRequest(AccountingRecordType accountingRecordType)
Create an Accounting-Request message populated with the following AVPs:- Accounting-Record-Type: as per accountingRecordType parameter
- Acct-Application-Id: the value 3 as specified by RFC6733
- Parameters:
accountingRecordType
- value for the Accounting-Record-Type AVP- Returns:
- a new AccountingRequest
-
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:
SendException
- if the message could not be sentIllegalArgumentException
- if accountingRequest is missing any required AVPs
-
-