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 boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
Tear down this resource.boolean
isShutdown()
boolean
isTerminated()
void
shutdown()
void
shutdownNow()
-
-
-
Method Detail
-
close
public void close() throws com.google.api.gax.rpc.ApiException
Description copied from interface:ApiBackgroundResource
Tear down this resource.- Specified by:
close
in interfaceApiBackgroundResource
- Specified by:
close
in interfaceAutoCloseable
- Throws:
com.google.api.gax.rpc.ApiException
- on a failure to properly terminate.
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfacecom.google.api.gax.core.BackgroundResource
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown
in interfacecom.google.api.gax.core.BackgroundResource
-
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interfacecom.google.api.gax.core.BackgroundResource
-
shutdownNow
public void shutdownNow()
- Specified by:
shutdownNow
in interfacecom.google.api.gax.core.BackgroundResource
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Specified by:
awaitTermination
in interfacecom.google.api.gax.core.BackgroundResource
- Throws:
InterruptedException
-
-