T - any type of Responsepublic class AbstractSampleProgram.SampleResponseConsumer<T extends Response<?>> extends java.lang.Object implements SingleResponseConsumer<T>
| Constructor and Description |
|---|
SampleResponseConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
receive(T response)
Method called by BRS every time a response comes back from the server
|
protected 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
|
public void receive(T response)
receive in interface SingleResponseConsumer<T extends Response<?>>response - the request responseprotected void validateResponse(T response)
response - the response to validate