Class WhiteboardExecutor

  • All Implemented Interfaces:
    java.util.concurrent.Executor

    public class WhiteboardExecutor
    extends AbstractServiceTracker<java.util.concurrent.Executor>
    implements java.util.concurrent.Executor
    Dynamic Executor based on the available whiteboard services. The execute(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 Detail

      • WhiteboardExecutor

        public WhiteboardExecutor()
    • Method Detail

      • execute

        public void execute​(@NotNull
                            @NotNull java.lang.Runnable command)
        Specified by:
        execute in interface java.util.concurrent.Executor