Package io.grpc.internal
Class SerializingExecutor
java.lang.Object
io.grpc.internal.SerializingExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionSerializingExecutor
(Executor executor) Creates a SerializingExecutor, running tasks usingexecutor
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Runs the given runnable strictly after all Runnables that were submitted before it, and using theexecutor
passed to the constructor.void
run()
void
setExecutor
(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
Runs the given runnable strictly after all Runnables that were submitted before it, and using theexecutor
passed to the constructor. . -
run
public void run()
-