Interface WebResponseBody.SseEncoder<A>

Type Parameters:
A - the type of data to encode
All Superinterfaces:
ResponseBody.Sse<A,WebResponseBody.SseEncoder.Event<A>,WebResponseBody.SseEncoder.EventFactory<A>>
Enclosing interface:
WebResponseBody

public static interface WebResponseBody.SseEncoder<A> extends ResponseBody.Sse<A,WebResponseBody.SseEncoder.Event<A>,WebResponseBody.SseEncoder.EventFactory<A>>

A server-sent events data producer used to encode data from a single object or many objects.

Implementors should rely on a MediaTypeConverter to encode data as a publisher of objects to raw data as a publisher of ByteBuf.

Since:
1.0
Author:
Jeremy Kuhn
See Also: