public class Http2NettyStreamClient extends AbstractNettyStreamClient
_scheduler, _state| Constructor and Description |
|---|
Http2NettyStreamClient(io.netty.channel.EventLoopGroup eventLoopGroup,
java.util.concurrent.ScheduledExecutorService scheduler,
long requestTimeout,
long shutdownTimeout,
java.util.concurrent.ExecutorService callbackExecutors,
com.linkedin.r2.transport.http.client.AbstractJmxManager jmxManager,
ChannelPoolManager channelPoolManager,
ChannelPoolManager sslChannelPoolManager)
Creates a new Http2NettyStreamClient
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doWriteRequestWithWireAttrHeaders(com.linkedin.r2.message.Request request,
com.linkedin.r2.message.RequestContext requestContext,
java.net.SocketAddress address,
java.util.Map<java.lang.String,java.lang.String> wireAttrs,
com.linkedin.r2.transport.http.client.TimeoutTransportCallback<com.linkedin.r2.message.stream.StreamResponse> callback,
long requestTimeout) |
doWriteRequest, getExecutionCallback, restRequesterrorResponse, getChannelPoolManagerPerRequest, getPoolStats, shutdown, streamRequest, toExceptionpublic Http2NettyStreamClient(io.netty.channel.EventLoopGroup eventLoopGroup,
java.util.concurrent.ScheduledExecutorService scheduler,
long requestTimeout,
long shutdownTimeout,
java.util.concurrent.ExecutorService callbackExecutors,
com.linkedin.r2.transport.http.client.AbstractJmxManager jmxManager,
ChannelPoolManager channelPoolManager,
ChannelPoolManager sslChannelPoolManager)
eventLoopGroup - The EventLoopGroup; it is the caller's responsibility to shut
it downscheduler - An executor; it is the caller's responsibility to shut it downrequestTimeout - Timeout, in ms, to get a connection from the pool or create oneshutdownTimeout - Timeout, in ms, the client should wait after shutdown is
initiated before terminating outstanding requestscallbackExecutors - An optional EventExecutorGroup to invoke user callbackjmxManager - A management class that is aware of the creation/shutdown event
of the underlying ChannelPoolManagerchannelPoolManager - channelPoolManager instance to retrieve http only channelssslChannelPoolManager - channelPoolManager instance to retrieve https only connectionprotected void doWriteRequestWithWireAttrHeaders(com.linkedin.r2.message.Request request,
com.linkedin.r2.message.RequestContext requestContext,
java.net.SocketAddress address,
java.util.Map<java.lang.String,java.lang.String> wireAttrs,
com.linkedin.r2.transport.http.client.TimeoutTransportCallback<com.linkedin.r2.message.stream.StreamResponse> callback,
long requestTimeout)
doWriteRequestWithWireAttrHeaders in class AbstractNettyStreamClient