public class ChannelPool
extends io.grpc.Channel
Modifier and Type | Class and Description |
---|---|
class |
ChannelPool.PooledChannel
An implementation of
Channel that knows how to return itself to the ChannelPool |
Constructor and Description |
---|
ChannelPool(io.grpc.Channel[] channels,
List<HeaderInterceptor> headerInterceptors) |
Modifier and Type | Method and Description |
---|---|
String |
authority() |
<ReqT,RespT> |
newCall(io.grpc.MethodDescriptor<ReqT,RespT> methodDescriptor,
io.grpc.CallOptions callOptions) |
ChannelPool.PooledChannel |
reserveChannel()
Gets a channel from the pool.
|
int |
size() |
protected static final Logger log
public ChannelPool(io.grpc.Channel[] channels, List<HeaderInterceptor> headerInterceptors)
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> newCall(io.grpc.MethodDescriptor<ReqT,RespT> methodDescriptor, io.grpc.CallOptions callOptions)
newCall
in class io.grpc.Channel
public String authority()
authority
in class io.grpc.Channel
public ChannelPool.PooledChannel reserveChannel()
public int size()
Copyright © 2015. All rights reserved.