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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SampleResponseConsumer

      public SampleResponseConsumer()
  • Method Details

    • receive

      public void receive(T response)
      Method called by BRS every time a response comes back from the server
      Specified by:
      receive in interface SingleResponseConsumer<T extends Response<?>>
      Parameters:
      response - the request response
    • validateResponse

      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
      Parameters:
      response - the response to validate