Class AbstractRoot.Controller

java.lang.Object
org.praxislive.base.AbstractRoot.Controller
All Implemented Interfaces:
org.praxislive.core.Root.Controller
Enclosing class:
AbstractRoot

protected class AbstractRoot.Controller extends Object implements org.praxislive.core.Root.Controller
Implementation of Root.Controller.
  • Constructor Details

    • Controller

      protected Controller()
  • Method Details

    • submitPacket

      public boolean submitPacket(org.praxislive.core.Packet packet)
      Specified by:
      submitPacket in interface org.praxislive.core.Root.Controller
    • start

      public void start(org.praxislive.core.Lookup lookup)
      Specified by:
      start in interface org.praxislive.core.Root.Controller
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface org.praxislive.core.Root.Controller
    • isAlive

      public boolean isAlive()
      Specified by:
      isAlive in interface org.praxislive.core.Root.Controller
    • awaitTermination

      public void awaitTermination(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException
      Specified by:
      awaitTermination in interface org.praxislive.core.Root.Controller
      Throws:
      InterruptedException
      TimeoutException
      ExecutionException
    • onQueueReceipt

      protected void onQueueReceipt()
      Called on receipt of a Packet (Call) or a Runnable task. The default implementation will call AbstractRoot.Delegate.onQueueReceipt() if a delegate is attached, or otherwise trigger an asynchronous poll of the queue.