public interface BatchRequestService
Modifier and Type | Method and Description |
---|---|
BRSStatMXBean |
getBRSMBean()
Returns the MBean exposing the statistical attributes of Batch Request Service.
|
void |
shutdown()
Method will gracefully shutdown the BatchRequestService.
|
void |
submit(oracle.communication.brm.charging.messages.framework.RequestEnvelope envelope)
Deprecated.
|
void |
submitManagement(ManagementRequest request,
SingleResponseConsumer<ManagementResponse> responseConsumer,
boolean resubmit)
Submit a ManagementRequest for processing.
|
void |
submitManagementRequest(oracle.communication.brm.charging.messages.framework.SingleRequestEnvelope<ManagementRequest> envelope)
Deprecated.
|
java.util.List<oracle.communication.brm.charging.messages.framework.MultiResponseEnvelope<UpdateResponse>> |
submitMSCCUpdateBatch(java.util.List<UpdateRequest> requests,
boolean resubmit,
int updateResponseTimeout,
long updateRequestServerTimeout)
Synchronously submit a batch of requests to be processed as MSCC
|
void |
submitPolicy(PolicyRequest request,
SingleResponseConsumer<PolicyResponse> responseConsumer,
boolean resubmit)
Submit a PolicyRequest for processing.
|
void |
submitQuery(java.util.List<QueryRequest> requests,
MultiResponseConsumer<QueryResponse> responseConsumer)
Submit a batch of QueryRequests for processing.
|
void |
submitQuery(QueryRequest request,
SingleResponseConsumer<QueryResponse> responseConsumer)
Submit a QueryRequest for processing.
|
UpdateResponse |
submitUpdate(UpdateRequest request,
boolean resubmit)
Synchronously submit the update request
|
java.util.List<UpdateResponse> |
submitUpdateBatch(java.util.List<UpdateRequest> requests,
boolean resubmit)
Synchronously submit a batch of update requests using Entry Processor
|
void |
submitUsage(java.util.List<UsageRequest> requests,
MultiResponseConsumer<UsageResponse> responseConsumer,
boolean resubmit)
Submit a batch of UsageRequests for processing.
|
void |
submitUsage(UsageRequest request,
SingleResponseConsumer<UsageResponse> responseConsumer,
boolean resubmit)
Submit a UsageRequest for processing.
|
void submitUsage(UsageRequest request, SingleResponseConsumer<UsageResponse> responseConsumer, boolean resubmit) throws UserNotFoundException, SystemHealthException
request
- the request to sendresponseConsumer
- responseConsumer that will receive the responseresubmit
- indicate the request is a resubmitted request or not.
If true, ECE server will apply duplicate check processing.
Otherwise, ECE server will process the request as a new request.UserNotFoundException
- if user could not be located at the time of envelope creationSystemHealthException
void submitUsage(java.util.List<UsageRequest> requests, MultiResponseConsumer<UsageResponse> responseConsumer, boolean resubmit) throws MessagesException, SystemHealthException, UserNotFoundException
requests
- the request to sendresponseConsumer
- responseConsumer that will receive the responseresubmit
- indicate the request is a resubmitted request or not.
If true, ECE server will apply duplicate check processing.
Otherwise, ECE server will process the request as a new request.MessagesException
- if envelope creation goes wrongUserNotFoundException
- if user could not be located at the time of envelope creationSystemHealthException
java.util.List<UpdateResponse> submitUpdateBatch(java.util.List<UpdateRequest> requests, boolean resubmit) throws MessagesException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException, UserNotFoundException
requests
- List of update requestsresubmit
- indicate the request is a resubmitted request or not.
If true, ECE server will apply duplicate check processing.
Otherwise, ECE server will process the request as a new requestrequests
- List of update requestsresubmit
- indicate the request is a resubmitted request or not.
If true, ECE server will apply duplicate check processing.
Otherwise, ECE server will process the request as a new requestMessagesException
- if envelope creation goes wrongjava.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
UserNotFoundException
java.util.List<oracle.communication.brm.charging.messages.framework.MultiResponseEnvelope<UpdateResponse>> submitMSCCUpdateBatch(java.util.List<UpdateRequest> requests, boolean resubmit, int updateResponseTimeout, long updateRequestServerTimeout) throws MessagesException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException, BRSOverloadException
requests
- List of update requestsresubmit
- indicate the request is a resubmitted request or not.
If true, ECE server will apply duplicate check processing.
Otherwise, ECE server will process the request as a new requestupdateResponseTimeout
- response Maxtimeout for MSCC requestupdateRequestServerTimeout
- MessagesException
java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
BRSOverloadException
UpdateResponse submitUpdate(UpdateRequest request, boolean resubmit) throws MessagesException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.util.concurrent.TimeoutException, UserNotFoundException
request
- update requestresubmit
- indicate the request is a resubmitted request or not.
If true, ECE server will apply duplicate check processing.
Otherwise, ECE server will process the request as a new requestMessagesException
- if envelope creation goes wrongjava.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
UserNotFoundException
void submitQuery(QueryRequest request, SingleResponseConsumer<QueryResponse> responseConsumer) throws UserNotFoundException, SystemHealthException
request
- the request to sendresponseConsumer
- responseConsumer that will receive the responseUserNotFoundException
- if user could not be located at the time of envelope creationSystemHealthException
void submitQuery(java.util.List<QueryRequest> requests, MultiResponseConsumer<QueryResponse> responseConsumer) throws MessagesException, SystemHealthException, UserNotFoundException
requests
- the request to sendresponseConsumer
- responseConsumer that will receive the responseMessagesException
- if envelope creation goes wrongUserNotFoundException
- if user could not be located at the time of envelope creationSystemHealthException
void submitManagement(ManagementRequest request, SingleResponseConsumer<ManagementResponse> responseConsumer, boolean resubmit) throws MessagesException
request
- the request to sendresponseConsumer
- responseConsumer that will receive the responseresubmit
- indicate the request is a resubmitted request or not.
If true, ECE server will apply duplicate check processing.
Otherwise, ECE server will process the request as a new request.MessagesException
- if envelope creation goes wrong@Deprecated void submit(oracle.communication.brm.charging.messages.framework.RequestEnvelope envelope) throws SystemHealthException
envelope
- The Incoming EnvelopeSystemHealthException
@Deprecated void submitManagementRequest(oracle.communication.brm.charging.messages.framework.SingleRequestEnvelope<ManagementRequest> envelope)
envelope
- The Incoming Envelopevoid submitPolicy(PolicyRequest request, SingleResponseConsumer<PolicyResponse> responseConsumer, boolean resubmit) throws UserNotFoundException, SystemHealthException
request
- the request to sendresponseConsumer
- responseConsumer that will receive the responseresubmit
- indicate the request is a resubmitted request or not.
If true, ECE server will apply duplicate check processing.
Otherwise, ECE server will process the request as a new requestSystemHealthException
- ECE system is not in a healthy state for processing the submitted requestUserNotFoundException
- if user could not be located at the time of envelope creationvoid shutdown()
BRSStatMXBean getBRSMBean()