org.datamanager.tools.kernelproxy
Class SubscriptionWorker

java.lang.Object
  |
  +--org.datamanager.kernel.Simpleton
        |
        +--org.datamanager.tools.kernelproxy.InterfaceWorker
              |
              +--org.datamanager.tools.kernelproxy.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 org.datamanager.tools.kernelproxy.InterfaceWorker
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

SubscriptionWorker

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

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

construct

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

Specified by:
construct in class InterfaceWorker
DataManagerException


See the Helium Website