R - Type read from the connection held by this handler.W - Type written to the connection held by this handler.public class ClientConnectionToChannelBridge<R,W> extends AbstractConnectionToChannelBridge<R,W>
AbstractConnectionToChannelBridge for clients.
ClientConnectionToChannelBridge.ConnectionReuseEvent.
Failure to do so, will result in errors on the Subscriber trying to reuse the channel.
A typical reuse should have the following events:
ChannelSubscriberEvent => ConnectionInputSubscriberEvent => ConnectionReuseEvent =>
ConnectionInputSubscriberEvent => ConnectionReuseEvent => ConnectionInputSubscriberEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientConnectionToChannelBridge.ConnectionReuseEvent<I,O>
An event to indicate channel/
Connection reuse. |
static class |
ClientConnectionToChannelBridge.PooledConnectionReleaseEvent
An event to indicate release of a
PooledConnection. |
BackpressureManagingHandler.RequestReadIfRequiredEvent| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<java.lang.Boolean> |
DISCARD_CONNECTION |
| Modifier and Type | Method and Description |
|---|---|
static <R,W> ClientConnectionToChannelBridge<R,W> |
addToPipeline(io.netty.channel.ChannelPipeline pipeline,
boolean isSecure) |
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
onNewReadSubscriber(rx.Subscriber<? super R> subscriber) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
channelInactive, channelUnregistered, checkEagerSubscriptionIfConfigured, connectionInputSubscriberExists, exceptionCaught, getNewChannelSub, isValidToEmit, newMessage, shouldReadMorechannelRead, channelReadComplete, handlerRemoved, read, writebind, close, connect, deregister, disconnect, flushpublic static final io.netty.util.AttributeKey<java.lang.Boolean> DISCARD_CONNECTION
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class AbstractConnectionToChannelBridge<R,W>java.lang.Exceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt)
throws java.lang.Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class AbstractConnectionToChannelBridge<R,W>java.lang.Exceptionprotected void onNewReadSubscriber(rx.Subscriber<? super R> subscriber)
onNewReadSubscriber in class AbstractConnectionToChannelBridge<R,W>public static <R,W> ClientConnectionToChannelBridge<R,W> addToPipeline(io.netty.channel.ChannelPipeline pipeline, boolean isSecure)