- Type Parameters:
A- the type of data
- All Known Subinterfaces:
OutboundDataEncoder<A>,Part<A>,ResponseBody.Sse.Event<A>,WebPart<A>,WebResponseBody.SseEncoder.Event<A>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A generic outbound data producer.
It is used to set the payload sent to a client or a server either in a response or a request.
- Since:
- 1.6
- Author:
- Jeremy Kuhn
-
Method Summary
-
Method Details
-
stream
Sets the outbound data.
- Type Parameters:
T- the type of data- Parameters:
value- the data publisher- Throws:
IllegalStateException- if data were already sent to the recipient
-
value
Sets the specified data.
- Type Parameters:
T- the type of data- Parameters:
value- the value to set- Throws:
IllegalStateException- if data were already sent to the recipient
-