public interface RfProvider extends RfProviderFactory
The SBB interface for the Diameter Rf Resource Adaptor.
This API can be used in either an asynchronous or synchronous manner.
To send messages asynchronously, create a RfClientSessionActivity
using one of the
createRfClientSessionActivity()
methods.
To send messages synchronously, use the accountingRequest(AccountingRequest)
method.
The Accounting-Request messages must be created using the RfMessageFactory
returned from
getRfMessageFactory()
.
Modifier and Type | Method and Description |
---|---|
AccountingAnswer |
accountingRequest(AccountingRequest accountingRequest)
Send an Accounting Request.
|
RfClientSessionActivity |
createRfClientSessionActivity()
Create a new activity to send and receive Diameter messages.
|
RfClientSessionActivity |
createRfClientSessionActivity(DiameterIdentity destinationHost,
DiameterIdentity destinationRealm)
Create a new activity to send and receive Diameter messages.
|
RfMessageFactory |
getRfMessageFactory()
Return a message factory to be used to create concrete implementations of accounting messages and AVPs.
|
getRfProviderV710, getRfProviderV790, getRfProviderV8d0, getRfProviderV960, getRfProviderVa00, getRfProviderVb80
RfMessageFactory getRfMessageFactory()
RfClientSessionActivity createRfClientSessionActivity() throws CreateActivityException
CreateActivityException
- if the RA could not create the activity for any reasonRfClientSessionActivity createRfClientSessionActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm) throws CreateActivityException
destinationHost
- a destination host to automatically put in all messagesdestinationRealm
- a destination realm to automatically put in all messagesCreateActivityException
- if the RA could not create the activity for any reasonAccountingAnswer accountingRequest(AccountingRequest accountingRequest) throws java.lang.IllegalArgumentException, SendException
See the note regarding synchronous requests in the org.jainslee.resources.diameter.rf
package docs.
accountingRequest
- the Accounting-Request message to sendSendException
- if the message could not be sentjava.lang.IllegalArgumentException
- if accountingRequest is missing any required AVPs