Class WhiteboardExecutor

  • All Implemented Interfaces:

    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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(@NotNull java.lang.Runnable command)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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