Interface ClientStreamConsumer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ClientStreamConsumer
Represents a consumer of a stream which can consume data pushed from the server. The data is typically pushed from a broker, and consumed by gateway.
  • Method Summary

    Modifier and Type
    Method
    Description
    push(org.agrona.DirectBuffer payload)
    Consumes the payload received from the server to the client.
  • Method Details

    • push

      ActorFuture<Void> push(org.agrona.DirectBuffer payload)
      Consumes the payload received from the server to the client. It is recommended to make the implementation to be asynchronous. Otherwise, it could block the thread of ClientStreamService and thus possibly delaying data from other streams being pushed.
      Parameters:
      payload - the data to be consumed by the client