@Override public void handlerAdded(ChannelHandlerContext ctx) throws Exception { super.handlerAdded(ctx); }
@Override public void handlerAdded(ChannelHandlerContext ctx) throws Exception { super.handlerAdded(ctx); }
@Override public void handlerAdded(ChannelHandlerContext ctx) throws Exception { super.handlerAdded(ctx); this.ctx = ctx; // Populate remote address SocketAddress address = ctx.channel().remoteAddress(); if (address instanceof InetSocketAddress) { remoteAddress = ((InetSocketAddress) address).getAddress().toString(); if (remoteAddress.startsWith("/")) { remoteAddress = remoteAddress.substring(1); } } }
@Override public void handlerAdded(final ChannelHandlerContext ctx) throws Exception { /* * Tune channel write buffering. We increase the writability window * to ensure we can flush an entire queue segment in one go. We definitely * want to keep the difference above 64k, as that will ensure we use jam-packed * TCP packets. UDP will fragment as appropriate. */ ctx.channel().config().setWriteBufferHighWaterMark(DEFAULT_HIGH_WATERMARK); ctx.channel().config().setWriteBufferLowWaterMark(DEFAULT_LOW_WATERMARK); super.handlerAdded(ctx); }
@Override public void handlerAdded(ChannelHandlerContext ctx) throws Exception { PipelineContinuationBehavior methodExecutionResponse; boolean shouldLinkAndUnlinkDTraceInfo = shouldLinkAndUnlinkDistributedTraceInfoForMethod( DO_HANDLER_ADDED, isDefaultDoHandlerAddedImpl, forceEnableDTraceOnAllMethods, debugHandlerMethodCalls, ctx, null, null ); Pair<Deque<Span>, Map<String, String>> origThreadInfo = null; try { if (shouldLinkAndUnlinkDTraceInfo) origThreadInfo = linkTracingAndMdcToCurrentThread(ctx); if (debugHandlerMethodCalls) logger.debug("(((((((((((((( handlerAdded for {}", this.getClass().getName()); methodExecutionResponse = doHandlerAdded(ctx); } finally { if (shouldLinkAndUnlinkDTraceInfo) unlinkTracingAndMdcFromCurrentThread(ctx, origThreadInfo); } if (methodExecutionResponse == null || CONTINUE.equals(methodExecutionResponse)) super.handlerAdded(ctx); }
@Override public void handlerAdded(ChannelHandlerContext ctx) throws Exception { PipelineContinuationBehavior methodExecutionResponse; boolean shouldLinkAndUnlinkDTraceInfo = shouldLinkAndUnlinkDistributedTraceInfoForMethod( DO_HANDLER_ADDED, isDefaultDoHandlerAddedImpl, forceEnableDTraceOnAllMethods, debugHandlerMethodCalls, ctx, null, null ); Pair<Deque<Span>, Map<String, String>> origThreadInfo = null; try { if (shouldLinkAndUnlinkDTraceInfo) origThreadInfo = linkTracingAndMdcToCurrentThread(ctx); if (debugHandlerMethodCalls) logger.debug("(((((((((((((( handlerAdded for {}", this.getClass().getName()); methodExecutionResponse = doHandlerAdded(ctx); } finally { if (shouldLinkAndUnlinkDTraceInfo) unlinkTracingAndMdcFromCurrentThread(ctx, origThreadInfo); } if (methodExecutionResponse == null || CONTINUE.equals(methodExecutionResponse)) super.handlerAdded(ctx); }