Class SerializingExecutor
java.lang.Object
io.grpc.internal.SerializingExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionSerializingExecutor(Executor executor) Creates a SerializingExecutor, running tasks usingexecutor. -
Method Summary
Modifier and TypeMethodDescriptionvoidRuns the given runnable strictly after all Runnables that were submitted before it, and using theexecutorpassed to the constructor. .voidrun()voidsetExecutor(Executor executor) Only call this from this SerializingExecutor Runnable, so that the executor is immediately visible to this SerializingExecutor executor.
-
Constructor Details
-
SerializingExecutor
Creates a SerializingExecutor, running tasks usingexecutor.- Parameters:
executor- Executor in which tasks should be run. Must not be null.
-
-
Method Details
-
setExecutor
Only call this from this SerializingExecutor Runnable, so that the executor is immediately visible to this SerializingExecutor executor. -
execute
-
run
-