Class AbstractSampleProgram.SampleResponseConsumer<T extends Response<?>>
java.lang.Object
oracle.communication.brm.charging.sdk.AbstractSampleProgram.SampleResponseConsumer<T>
- Type Parameters:
T
- any type of Response
- All Implemented Interfaces:
SingleResponseConsumer<T>
- Enclosing class:
AbstractSampleProgram
public class AbstractSampleProgram.SampleResponseConsumer<T extends Response<?>>
extends Object
implements SingleResponseConsumer<T>
Response consumer for the requests send by the AbstractSampleProgram
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method called by BRS every time a response comes back from the serverprotected void
validateResponse
(T response) Method called every time a response is received, to verify that it is a well formed response If an anomaly is detected it will be logged in the DIAGNOSTICS queue
-
Constructor Details
-
SampleResponseConsumer
public SampleResponseConsumer()
-
-
Method Details
-
receive
Method called by BRS every time a response comes back from the server- Specified by:
receive
in interfaceSingleResponseConsumer<T extends Response<?>>
- Parameters:
response
- the request response
-
validateResponse
Method called every time a response is received, to verify that it is a well formed response If an anomaly is detected it will be logged in the DIAGNOSTICS queue- Parameters:
response
- the response to validate
-