public class SseClientPipelineConfigurator<I> extends java.lang.Object implements PipelineConfigurator<HttpClientResponse<ServerSentEvent>,HttpClientRequest<I>>
PipelineConfigurator
implementation for Server Sent Events to
be used for SSE clients.Modifier and Type | Field and Description |
---|---|
static SseChannelHandler |
SSE_CHANNEL_HANDLER |
Constructor and Description |
---|
SseClientPipelineConfigurator() |
SseClientPipelineConfigurator(HttpClientPipelineConfigurator<I,?> httpClientPipelineConfigurator) |
Modifier and Type | Method and Description |
---|---|
void |
configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
A callback to configure the passed
pipeline . |
public static final SseChannelHandler SSE_CHANNEL_HANDLER
public SseClientPipelineConfigurator()
public SseClientPipelineConfigurator(HttpClientPipelineConfigurator<I,?> httpClientPipelineConfigurator)
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<HttpClientResponse<ServerSentEvent>,HttpClientRequest<I>>
pipeline
- The pipeline to configure.