- Type Parameters:
A- the type of data
- All Known Subinterfaces:
ResponseBody.Sse.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 response payload producer.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
ResponseBody.raw(),ResponseBody.Sse.Event
-
Method Summary
-
Method Details
-
stream
Sets the payload data.
- Type Parameters:
T- the type of data- Parameters:
value- the data publisher- Throws:
IllegalStateException- if the payload has already been set
-
value
Sets the specified data.
- Type Parameters:
T- the type of data- Parameters:
value- the value to set- Throws:
IllegalStateException- if the payload has already been set
-