| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private C | |
| private final Function | |
| private Handler |
| Access | Constructor and Description |
|---|---|
| private |
| addHandler | back to summary |
|---|---|
| private Handler<C> addHandler | |
| conn | back to summary |
|---|---|
| private C conn | |
| connectionFactory | back to summary |
|---|---|
| private final Function<ChannelHandlerContext, C> connectionFactory | |
| removeHandler | back to summary |
|---|---|
| private Handler<C> removeHandler | |
| VertxHandler | back to summary |
|---|---|
| private VertxHandler(Function<ChannelHandlerContext, C> connectionFactory) | |
| addHandler | back to summary |
|---|---|
| public VertxHandler Set an handler to be called when the connection is set on this handler.
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext chctx) Overrides io. Implements io. Doc from io. Calls
| |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext chctx, Object msg) Overrides io. Implements io. Doc from io. Calls
| |
| channelReadComplete | back to summary |
|---|---|
| public void channelReadComplete(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| channelWritabilityChanged | back to summary |
|---|---|
| public void channelWritabilityChanged(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| close | back to summary |
|---|---|
| public void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception Overrides io. Implements io. Doc from io. Calls
| |
| create | back to summary |
|---|---|
| public static <C extends ConnectionBase> VertxHandler | |
| exceptionCaught | back to summary |
|---|---|
| public void exceptionCaught(ChannelHandlerContext chctx, final Throwable t) Overrides io. Implements io. Doc from io. Gets called if a
| |
| getConnection | back to summary |
|---|---|
| public C getConnection() | |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Gets called after the
| |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) throws Exception Overrides io. Implements io. Doc from io. Gets called after the
| |
| removeHandler | back to summary |
|---|---|
| public VertxHandler Set an handler to be called when the connection is unset from this handler.
| |
| safeBuffer | back to summary |
|---|---|
| public static ByteBuf safeBuffer(ByteBuf buf) Copy and release the This methods assuming the has full ownership of the buffer. This method assumes that pooled buffers are allocated by The returned buffer will not need to be released and can be wrapped by a | |
| setConnection | back to summary |
|---|---|
| private void setConnection(C connection) Set the connection, this is called when the channel is added to the pipeline.
| |
| userEventTriggered | back to summary |
|---|---|
| public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception Overrides io. Implements io. Doc from io. Calls
| |