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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()Tear down this resource.booleanisShutdown()booleanisTerminated()voidshutdown()voidshutdownNow()
-
-
-
Method Detail
-
close
public void close() throws com.google.api.gax.rpc.ApiExceptionDescription copied from interface:ApiBackgroundResourceTear down this resource.- Specified by:
closein interfaceApiBackgroundResource- Specified by:
closein interfaceAutoCloseable- Throws:
com.google.api.gax.rpc.ApiException- on a failure to properly terminate.
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfacecom.google.api.gax.core.BackgroundResource
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdownin interfacecom.google.api.gax.core.BackgroundResource
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminatedin interfacecom.google.api.gax.core.BackgroundResource
-
shutdownNow
public void shutdownNow()
- Specified by:
shutdownNowin interfacecom.google.api.gax.core.BackgroundResource
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Specified by:
awaitTerminationin interfacecom.google.api.gax.core.BackgroundResource- Throws:
InterruptedException
-
-