Class HttpJsonTransportChannel

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

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

      • HttpJsonTransportChannel

        public HttpJsonTransportChannel()
    • Method Detail

      • getHttpJsonTransportName

        public static java.lang.String getHttpJsonTransportName()
        The name of the Http-JSON transport.
      • getTransportName

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

        public HttpJsonCallContext getEmptyCallContext()
        Specified by:
        getEmptyCallContext in interface com.google.api.gax.rpc.TransportChannel
      • 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