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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitTermination(long timeout, TimeUnit unit) booleanisAlive()protected voidCalled on receipt of aPacket(Call) or a Runnable task.voidshutdown()voidstart(org.praxislive.core.Lookup lookup) booleansubmitPacket(org.praxislive.core.Packet packet) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.praxislive.core.Root.Controller
start
-
Constructor Details
-
Controller
protected Controller()
-
-
Method Details
-
submitPacket
public boolean submitPacket(org.praxislive.core.Packet packet) - Specified by:
submitPacketin interfaceorg.praxislive.core.Root.Controller
-
start
public void start(org.praxislive.core.Lookup lookup) - Specified by:
startin interfaceorg.praxislive.core.Root.Controller
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.praxislive.core.Root.Controller
-
isAlive
public boolean isAlive()- Specified by:
isAlivein interfaceorg.praxislive.core.Root.Controller
-
awaitTermination
public void awaitTermination(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException - Specified by:
awaitTerminationin interfaceorg.praxislive.core.Root.Controller- Throws:
InterruptedExceptionTimeoutExceptionExecutionException
-
onQueueReceipt
protected void onQueueReceipt()Called on receipt of aPacket(Call) or a Runnable task. The default implementation will callAbstractRoot.Delegate.onQueueReceipt()if a delegate is attached, or otherwise trigger an asynchronous poll of the queue.
-