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 TypeMethodDescriptionvoidMethod called by BRS every time a response comes back from the serverprotected voidvalidateResponse(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 queueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface oracle.communication.brm.charging.messages.framework.SingleResponseConsumer
failure
-
Constructor Details
-
SampleResponseConsumer
public SampleResponseConsumer()
-
-
Method Details
-
receive
Method called by BRS every time a response comes back from the server- Specified by:
receivein 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
-