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.
Method Summary |
protected Object |
construct()
Subscribes a handler to the Pool with a constraint. |
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
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