Class SubscriptionWorker


public class SubscriptionWorker
extends InterfaceWorker

Subscribes a handler to all events matching the given constraint. A call to get() will retrieve the value of the operation Note: This thread will only work when run within the kernel on an approved thread.

Nested Class Summary
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
Constructor Summary
SubscriptionWorker(EventConstraint constraint, EventHandler handler)
          Creates a worker to subscribe the handler to events.
Method Summary
protected  Object construct()
          Subscribes a handler to the Pool with a constraint.
Methods inherited from class
get, getInformation, getValue, process
Methods inherited from class org.datamanager.kernel.Simpleton
clone, getPriority, setInformation, setPriority, start
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SubscriptionWorker(EventConstraint constraint,
                          EventHandler handler)
Creates a worker to subscribe the handler to events.

constraint - the constraint describing an event.
handler - the EventHandler to be subscribed
Method Detail


protected Object construct()
                    throws DataManagerException
Subscribes a handler to the Pool with a constraint.

Specified by:
construct in class InterfaceWorker

See the Helium Website