List of usage examples for io.netty.channel ChannelDuplexHandler subclass-usage
From source file com.linecorp.armeria.client.http.HttpSessionHandler.java
final class HttpSessionHandler extends ChannelDuplexHandler implements HttpSession { private static final Logger logger = LoggerFactory.getLogger(HttpSessionHandler.class); /** * 2^29 - We could have used 2^30 but this should be large enough.
From source file com.linecorp.armeria.client.HttpClientPipelineConfigurator.java
final class HttpClientPipelineConfigurator extends ChannelDuplexHandler { private static final Logger logger = LoggerFactory.getLogger(HttpClientPipelineConfigurator.class); /** * The maximum allowed content length of an HTTP/1 to 2 upgrade response.
From source file com.linecorp.armeria.client.HttpConfigurator.java
class HttpConfigurator extends ChannelDuplexHandler { private static final Logger logger = LoggerFactory.getLogger(HttpConfigurator.class); private enum HttpPreference { HTTP1_REQUIRED, HTTP2_PREFERRED, HTTP2_REQUIRED
From source file com.linecorp.armeria.client.HttpSessionHandler.java
final class HttpSessionHandler extends ChannelDuplexHandler implements HttpSession { private static final Logger logger = LoggerFactory.getLogger(HttpSessionHandler.class); /** * 2^29 - We could have used 2^30 but this should be large enough.
From source file com.linecorp.armeria.internal.FlushConsolidationHandler.java
/**
* {@link ChannelDuplexHandler} which consolidate {@link ChannelOutboundInvoker#flush()} operations (which also includes
* {@link ChannelOutboundInvoker#writeAndFlush(Object)} and
* {@link ChannelOutboundInvoker#writeAndFlush(Object, ChannelPromise)}).
*
* Flush operations are general speaking expensive as these may trigger a syscall on the transport level. Thus it is
From source file com.linecorp.armeria.server.GracefulShutdownHandler.java
/** * A handler that keeps track of pending requests to allow shutdown to happen * after a fixed quiet period passes after the last one. */ @Sharable public final class GracefulShutdownHandler extends ChannelDuplexHandler {
From source file com.linecorp.armeria.server.http.Http1RequestDecoder.java
final class Http1RequestDecoder extends ChannelDuplexHandler { private static final Logger logger = LoggerFactory.getLogger(Http1RequestDecoder.class); private static final Http2Settings DEFAULT_HTTP2_SETTINGS = new Http2Settings();
From source file com.linecorp.armeria.server.Http1RequestDecoder.java
final class Http1RequestDecoder extends ChannelDuplexHandler { private static final Logger logger = LoggerFactory.getLogger(Http1RequestDecoder.class); private static final Http2Settings DEFAULT_HTTP2_SETTINGS = new Http2Settings();
From source file com.linkedin.r2.transport.http.client.Http2AlpnHandler.java
/**
* A handler that triggers the ALPN protocol negotiate upon adding to the pipeline by
* listening to upstream {@link SslHandshakeCompletionEvent}. Calls to #write and #flush
* are suspended util negotiation is complete.
*
* The handler removes itself if protocol h2 is negotiated. If any protocol other than h2
From source file com.linkedin.r2.transport.http.client.Http2UpgradeHandler.java
/**
* A handler that triggers the clear text upgrade to HTTP/2 upon adding to pipeline by sending
* an initial HTTP OPTIONS request with connection upgrade headers. Calls to #write and #flush
* are suspended util the upgrade is complete. Handler removes itself upon upgrade success.
*
* Handler listens to upstream {@link HttpClientUpgradeHandler.UpgradeEvent} event for h2c