public class HttpNettyStreamClient extends AbstractNettyStreamClient
_scheduler, _state| Constructor and Description |
|---|
HttpNettyStreamClient(ChannelPoolFactory factory,
java.util.concurrent.ScheduledExecutorService executor,
int requestTimeout,
int shutdownTimeout) |
HttpNettyStreamClient(io.netty.channel.EventLoopGroup eventLoopGroup,
java.util.concurrent.ScheduledExecutorService executor,
long requestTimeout,
long shutdownTimeout,
java.util.concurrent.ExecutorService callbackExecutors,
com.linkedin.r2.transport.http.client.AbstractJmxManager jmxManager,
ChannelPoolManager channelPoolManager,
ChannelPoolManager sslChannelPoolManager)
Creates a new HttpNettyStreamClient
|
| 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 HttpNettyStreamClient(io.netty.channel.EventLoopGroup eventLoopGroup,
java.util.concurrent.ScheduledExecutorService executor,
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 downexecutor - 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 connectionpublic HttpNettyStreamClient(ChannelPoolFactory factory, java.util.concurrent.ScheduledExecutorService executor, int requestTimeout, int shutdownTimeout)
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)
doWriteRequestWithWireAttrHeaders in class AbstractNettyStreamClient