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.
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 TypeMethodDescriptionpush(org.agrona.DirectBuffer payload) Consumes the payload received from the server to the client.
-
Method Details
-
push
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 ofClientStreamServiceand thus possibly delaying data from other streams being pushed.- Parameters:
payload- the data to be consumed by the client
-