Interface RequestTransport.TransportReceiver

Enclosing interface:
RequestTransport

public static interface RequestTransport.TransportReceiver
A callback interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called to report a transmission failure as a ServerFailure.
    void
    Called when the transmission succeeds.
  • Method Details

    • onTransportSuccess

      void onTransportSuccess(String payload)
      Called when the transmission succeeds.
      Parameters:
      payload - the String payload
    • onTransportFailure

      void onTransportFailure(ServerFailure failure)
      Called to report a transmission failure as a ServerFailure.
      Parameters:
      failure - a ServerFailure instance indicating the nature of the failure