Class ManagedHttpJsonChannel

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

    @BetaApi
    public class ManagedHttpJsonChannel
    extends java.lang.Object
    implements HttpJsonChannel, com.google.api.gax.core.BackgroundResource
    Implementation of HttpJsonChannel which can issue http-json calls.
    • Constructor Detail

      • ManagedHttpJsonChannel

        protected ManagedHttpJsonChannel()
    • Method Detail

      • 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