ChannelHandler for collecting metrics on protocol level.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| pack-priv final boolean | |
| pack-priv final SocketAddress |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | channelActive(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext is now active
|
| public void | channelExceptionCaught(ChannelHandlerContext ctx, Throwable cause)
Overrides default io. Throwable was thrown when handling inbound events.
|
| public void | channelInactive(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext was registered is now inactive and reached its
end of lifetime.
|
| public void | channelRead(ChannelHandlerContext ctx, Object msg)
Overrides default io. Channel has read a message from the peer.
|
| public void | channelRegistered(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext was registered with its EventLoop
|
| public abstract ChannelHandler | |
| public abstract ChannelMetricsRecorder | |
| protected void | |
| protected void | |
| protected void | |
| public abstract ChannelHandler | |
| public Future | write(ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the write operation is madethe message to write msg)Overrides default io. |
| log | back to summary |
|---|---|
| private static final Logger log | |
| onServer | back to summary |
|---|---|
| pack-priv final boolean onServer | |
| remoteAddress | back to summary |
|---|---|
| pack-priv final SocketAddress remoteAddress | |
| AbstractChannelMetricsHandler | back to summary |
|---|---|
| protected AbstractChannelMetricsHandler(SocketAddress remoteAddress, boolean onServer) | |
| channelActive | back to summary |
|---|---|
| public void channelActive(ChannelHandlerContext ctx) Overrides default io. Doc from io. The
| |
| channelExceptionCaught | back to summary |
|---|---|
| public void channelExceptionCaught(ChannelHandlerContext ctx, Throwable cause) Overrides default io. Doc from io. Gets called if a
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext ctx) Overrides default io. Doc from io. The
| |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext ctx, Object msg) Overrides default io. Doc from io. Invoked when the current
| |
| channelRegistered | back to summary |
|---|---|
| public void channelRegistered(ChannelHandlerContext ctx) Overrides default io. Doc from io. The
| |
| connectMetricsHandler | back to summary |
|---|---|
| public abstract ChannelHandler connectMetricsHandler() | |
| recorder | back to summary |
|---|---|
| public abstract ChannelMetricsRecorder recorder() | |
| recordException | back to summary |
|---|---|
| protected void recordException(ChannelHandlerContext ctx, SocketAddress address) | |
| recordRead | back to summary |
|---|---|
| protected void recordRead(ChannelHandlerContext ctx, SocketAddress address, long bytes) | |
| recordWrite | back to summary |
|---|---|
| protected void recordWrite(ChannelHandlerContext ctx, SocketAddress address, long bytes) | |
| tlsMetricsHandler | back to summary |
|---|---|
| public abstract ChannelHandler tlsMetricsHandler() | |
| write | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a write operation is made. The write operation will write the messages through the
| |