Package io.grpc.internal
Class SubchannelChannel
- java.lang.Object
-
- io.grpc.Channel
-
- io.grpc.internal.SubchannelChannel
-
final class SubchannelChannel extends Channel
-
-
Field Summary
Fields Modifier and Type Field Description private CallTracercallsTracerprivate java.util.concurrent.atomic.AtomicReference<InternalConfigSelector>configSelectorprivate java.util.concurrent.ScheduledExecutorServicedeadlineCancellationExecutorprivate java.util.concurrent.Executorexecutor(package private) static StatusNOT_READY_ERRORprivate static FailingClientTransportnotReadyTransportprivate InternalSubchannelsubchannelprivate ClientCallImpl.ClientStreamProvidertransportProvider(package private) static StatusWAIT_FOR_READY_ERROR
-
Constructor Summary
Constructors Constructor Description SubchannelChannel(InternalSubchannel subchannel, java.util.concurrent.Executor executor, java.util.concurrent.ScheduledExecutorService deadlineCancellationExecutor, CallTracer callsTracer, java.util.concurrent.atomic.AtomicReference<InternalConfigSelector> configSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringauthority()The authority of the destination this channel connects to.<RequestT,ResponseT>
ClientCall<RequestT,ResponseT>newCall(MethodDescriptor<RequestT,ResponseT> methodDescriptor, CallOptions callOptions)Create aClientCallto the remote operation specified by the givenMethodDescriptor.
-
-
-
Field Detail
-
NOT_READY_ERROR
static final Status NOT_READY_ERROR
-
WAIT_FOR_READY_ERROR
static final Status WAIT_FOR_READY_ERROR
-
notReadyTransport
private static final FailingClientTransport notReadyTransport
-
subchannel
private final InternalSubchannel subchannel
-
executor
private final java.util.concurrent.Executor executor
-
deadlineCancellationExecutor
private final java.util.concurrent.ScheduledExecutorService deadlineCancellationExecutor
-
callsTracer
private final CallTracer callsTracer
-
configSelector
private final java.util.concurrent.atomic.AtomicReference<InternalConfigSelector> configSelector
-
transportProvider
private final ClientCallImpl.ClientStreamProvider transportProvider
-
-
Constructor Detail
-
SubchannelChannel
SubchannelChannel(InternalSubchannel subchannel, java.util.concurrent.Executor executor, java.util.concurrent.ScheduledExecutorService deadlineCancellationExecutor, CallTracer callsTracer, java.util.concurrent.atomic.AtomicReference<InternalConfigSelector> configSelector)
-
-
Method Detail
-
newCall
public <RequestT,ResponseT> ClientCall<RequestT,ResponseT> newCall(MethodDescriptor<RequestT,ResponseT> methodDescriptor, CallOptions callOptions)
Description copied from class:ChannelCreate aClientCallto the remote operation specified by the givenMethodDescriptor. The returnedClientCalldoes not trigger any remote behavior untilClientCall.start(ClientCall.Listener, Metadata)is invoked.- Specified by:
newCallin classChannel- Parameters:
methodDescriptor- describes the name and parameter types of the operation to call.callOptions- runtime options to be applied to this call.- Returns:
- a
ClientCallbound to the specified method.
-
-