类 ReferenceCountManagedChannel
- java.lang.Object
-
- io.grpc.Channel
-
- io.grpc.ManagedChannel
-
- org.apache.dubbo.rpc.protocol.grpc.ReferenceCountManagedChannel
-
public class ReferenceCountManagedChannel extends io.grpc.ManagedChannelAlso see ReferenceCountExchangeClient
-
-
构造器概要
构造器 构造器 说明 ReferenceCountManagedChannel(io.grpc.ManagedChannel delegated)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Stringauthority()booleanawaitTermination(long timeout, TimeUnit unit)intincrementAndGetCount()The reference count of current ExchangeClient, connection will be closed if all invokers destroyed.booleanisShutdown()booleanisTerminated()<RequestT,ResponseT>
io.grpc.ClientCall<RequestT,ResponseT>newCall(io.grpc.MethodDescriptor<RequestT,ResponseT> methodDescriptor, io.grpc.CallOptions callOptions)io.grpc.ManagedChannelshutdown()io.grpc.ManagedChannelshutdownNow()
-
-
-
方法详细资料
-
incrementAndGetCount
public int incrementAndGetCount()
The reference count of current ExchangeClient, connection will be closed if all invokers destroyed.
-
shutdown
public io.grpc.ManagedChannel shutdown()
- 指定者:
shutdown在类中io.grpc.ManagedChannel
-
isShutdown
public boolean isShutdown()
- 指定者:
isShutdown在类中io.grpc.ManagedChannel
-
isTerminated
public boolean isTerminated()
- 指定者:
isTerminated在类中io.grpc.ManagedChannel
-
shutdownNow
public io.grpc.ManagedChannel shutdownNow()
- 指定者:
shutdownNow在类中io.grpc.ManagedChannel
-
awaitTermination
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException- 指定者:
awaitTermination在类中io.grpc.ManagedChannel- 抛出:
InterruptedException
-
newCall
public <RequestT,ResponseT> io.grpc.ClientCall<RequestT,ResponseT> newCall(io.grpc.MethodDescriptor<RequestT,ResponseT> methodDescriptor, io.grpc.CallOptions callOptions)- 指定者:
newCall在类中io.grpc.Channel
-
authority
public String authority()
- 指定者:
authority在类中io.grpc.Channel
-
-