Package io.grpc.internal
Class SubchannelChannel
java.lang.Object
io.grpc.Channel
io.grpc.internal.SubchannelChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallTracer
private final AtomicReference
<InternalConfigSelector> private final ScheduledExecutorService
private final Executor
(package private) static final Status
private static final FailingClientTransport
private final InternalSubchannel
private final ClientCallImpl.ClientStreamProvider
(package private) static final Status
-
Constructor Summary
ConstructorsConstructorDescriptionSubchannelChannel
(InternalSubchannel subchannel, Executor executor, ScheduledExecutorService deadlineCancellationExecutor, CallTracer callsTracer, AtomicReference<InternalConfigSelector> configSelector) -
Method Summary
Modifier and TypeMethodDescriptionThe authority of the destination this channel connects to.<RequestT,
ResponseT>
ClientCall<RequestT, ResponseT> newCall
(MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) Create aClientCall
to the remote operation specified by the givenMethodDescriptor
.
-
Field Details
-
NOT_READY_ERROR
-
WAIT_FOR_READY_ERROR
-
notReadyTransport
-
subchannel
-
executor
-
deadlineCancellationExecutor
-
callsTracer
-
configSelector
-
transportProvider
-
-
Constructor Details
-
SubchannelChannel
SubchannelChannel(InternalSubchannel subchannel, Executor executor, ScheduledExecutorService deadlineCancellationExecutor, CallTracer callsTracer, AtomicReference<InternalConfigSelector> configSelector)
-
-
Method Details
-
newCall
public <RequestT,ResponseT> ClientCall<RequestT,ResponseT> newCall(MethodDescriptor<RequestT, ResponseT> methodDescriptor, CallOptions callOptions) Description copied from class:Channel
Create aClientCall
to the remote operation specified by the givenMethodDescriptor
. The returnedClientCall
does not trigger any remote behavior untilClientCall.start(ClientCall.Listener, Metadata)
is invoked.- Specified by:
newCall
in 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
ClientCall
bound to the specified method.
-
authority
Description copied from class:Channel
The authority of the destination this channel connects to. Typically this is in the formathost:port
.
-