Class GrpcTransportChannel

  • All Implemented Interfaces:
    com.google.api.gax.core.BackgroundResource, com.google.api.gax.rpc.TransportChannel, java.lang.AutoCloseable

    @InternalExtensionOnly
    public abstract class GrpcTransportChannel
    extends java.lang.Object
    implements com.google.api.gax.rpc.TransportChannel
    Implementation of TransportChannel based on gRPC.
    • Constructor Detail

      • GrpcTransportChannel

        public GrpcTransportChannel()
    • Method Detail

      • getGrpcTransportName

        public static java.lang.String getGrpcTransportName()
        The name of the Grpc transport.
      • getTransportName

        public java.lang.String getTransportName()
        Specified by:
        getTransportName in interface com.google.api.gax.rpc.TransportChannel
      • getEmptyCallContext

        public GrpcCallContext getEmptyCallContext()
        Specified by:
        getEmptyCallContext in interface com.google.api.gax.rpc.TransportChannel
      • getChannel

        public io.grpc.Channel getChannel()
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface com.google.api.gax.core.BackgroundResource
      • isShutdown

        public boolean isShutdown()
        Specified by:
        isShutdown in interface com.google.api.gax.core.BackgroundResource
      • isTerminated

        public boolean isTerminated()
        Specified by:
        isTerminated in interface com.google.api.gax.core.BackgroundResource
      • shutdownNow

        public void shutdownNow()
        Specified by:
        shutdownNow in interface com.google.api.gax.core.BackgroundResource
      • awaitTermination

        public boolean awaitTermination​(long duration,
                                        java.util.concurrent.TimeUnit unit)
                                 throws java.lang.InterruptedException
        Specified by:
        awaitTermination in interface com.google.api.gax.core.BackgroundResource
        Throws:
        java.lang.InterruptedException
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable