public class WebSocketClientPipelineConfigurator<R,W> extends java.lang.Object implements PipelineConfigurator<R,W>
WebSocketClientHandler
for WebSocket handshake orchestration. Once handshake is done, the channel is dynamically reconfigured.| Constructor and Description |
|---|
WebSocketClientPipelineConfigurator(java.net.URI webSocketURI,
io.netty.handler.codec.http.websocketx.WebSocketVersion webSocketVersion,
java.lang.String subprotocol,
boolean allowExtensions,
int maxFramePayloadLength,
boolean messageAggregation,
MetricEventsSubject<ClientMetricsEvent<?>> eventsSubject) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
A callback to configure the passed
pipeline. |
public WebSocketClientPipelineConfigurator(java.net.URI webSocketURI,
io.netty.handler.codec.http.websocketx.WebSocketVersion webSocketVersion,
java.lang.String subprotocol,
boolean allowExtensions,
int maxFramePayloadLength,
boolean messageAggregation,
MetricEventsSubject<ClientMetricsEvent<?>> eventsSubject)
public void configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
PipelineConfiguratorpipeline. 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.