@Deprecated public class SSEServerPipelineConfigurator<R,W> extends java.lang.Object implements PipelineConfigurator<R,W>
PipelineConfigurator
that will setup Netty's pipeline for a server sending
Server Sent Events. ServerSentEvent
objects to ByteBuf
. So, if the server is an HTTP server, then you would
have to use SseOverHttpServerPipelineConfigurator
instead.ServerSentEventEncoder
Modifier and Type | Field and Description |
---|---|
static ServerSentEventEncoder |
SERVER_SENT_EVENT_ENCODER
Deprecated.
|
static java.lang.String |
SSE_ENCODER_HANDLER_NAME
Deprecated.
|
Constructor and Description |
---|
SSEServerPipelineConfigurator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
Deprecated.
A callback to configure the passed
pipeline . |
public static final java.lang.String SSE_ENCODER_HANDLER_NAME
public static final ServerSentEventEncoder SERVER_SENT_EVENT_ENCODER
public void configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
PipelineConfigurator
pipeline
. This will be invoked everytime a new netty pipeline is
created, which is whenever a new channel is established.configureNewPipeline
in interface PipelineConfigurator<R,W>
pipeline
- The pipeline to configure.