Class SerialExecutor
java.lang.Object
com.google.cloud.pubsublite.internal.SerialExecutor
- All Implemented Interfaces:
AutoCloseable,Executor
An executor that runs tasks sequentially.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Shuts down the executor.voidvoidWaits until there are no active tasks.
-
Constructor Details
-
SerialExecutor
-
-
Method Details
-
waitUntilInactive
public void waitUntilInactive()Waits until there are no active tasks. -
close
public void close()Shuts down the executor. No subsequent tasks will run, but any running task will be left to complete.- Specified by:
closein interfaceAutoCloseable
-
execute
-