Interface Messaging.RequestStream<T,R>

Type Parameters:
T - request type
R - response type
All Superinterfaces:
Callback, Stream
Enclosing interface:
Messaging

public static interface Messaging.RequestStream<T,R> extends Stream
Interface which specifies a request stream to receive request notifications.
Since:
6.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Responder interface to dispatch responses to requests.

    Nested classes/interfaces inherited from interface com.pushtechnology.diffusion.client.callbacks.Stream

    Stream.Default
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRequest(String path, T request, Messaging.RequestStream.Responder<R> responder)
    Called to indicate a request has been received.

    Methods inherited from interface com.pushtechnology.diffusion.client.callbacks.Callback

    onError

    Methods inherited from interface com.pushtechnology.diffusion.client.callbacks.Stream

    onClose
  • Method Details

    • onRequest

      void onRequest(String path, T request, Messaging.RequestStream.Responder<R> responder)
      Called to indicate a request has been received.
      Parameters:
      path - path the request was sent on
      request - request that was received
      responder - responder to dispatch a response back to the requester