Class ApiResourceAggregation

java.lang.Object
com.google.cloud.pubsublite.internal.ApiResourceAggregation
All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource, ApiBackgroundResource, AutoCloseable
Direct Known Subclasses:
AdminClientImpl, CursorClientImpl, TopicStatsClientImpl

public class ApiResourceAggregation extends Object implements ApiBackgroundResource
  • Method Details

    • close

      public void close() throws com.google.api.gax.rpc.ApiException
      Description copied from interface: ApiBackgroundResource
      Tear down this resource.
      Specified by:
      close in interface ApiBackgroundResource
      Specified by:
      close in interface AutoCloseable
      Throws:
      com.google.api.gax.rpc.ApiException - on a failure to properly terminate.
    • 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, TimeUnit unit) throws InterruptedException
      Specified by:
      awaitTermination in interface com.google.api.gax.core.BackgroundResource
      Throws:
      InterruptedException