Package io.grpc.internal
Class SubchannelChannel
java.lang.Object
io.grpc.Channel
io.grpc.internal.SubchannelChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CallTracerprivate final AtomicReference<InternalConfigSelector> private final ScheduledExecutorServiceprivate final Executor(package private) static final Statusprivate static final FailingClientTransportprivate final InternalSubchannelprivate 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 aClientCallto 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: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.
-
authority
Description copied from class:ChannelThe authority of the destination this channel connects to. Typically this is in the formathost:port.
-