Class WhiteboardExecutor
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker<java.util.concurrent.Executor>
-
- org.apache.jackrabbit.oak.spi.whiteboard.WhiteboardExecutor
-
- All Implemented Interfaces:
java.util.concurrent.Executor
public class WhiteboardExecutor extends AbstractServiceTracker<java.util.concurrent.Executor> implements java.util.concurrent.Executor
DynamicExecutor
based on the available whiteboard services. Theexecute(Runnable)
method passes the given command to the first available executor service. Alternatively the command is run in the calling thread if no executor services are available.
-
-
Constructor Summary
Constructors Constructor Description WhiteboardExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(@NotNull java.lang.Runnable command)
-
Methods inherited from class org.apache.jackrabbit.oak.spi.whiteboard.AbstractServiceTracker
start, stop
-
-