Package net.sf.eBus.client
Class EFeed.NotifyTask
- java.lang.Object
-
- net.sf.eBus.client.EFeed.AbstractClientTask
-
- net.sf.eBus.client.EFeed.NotifyTask
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- EFeed
protected class EFeed.NotifyTask extends EFeed.AbstractClientTask
This task forwards a notification message toESubscriber.notify(ENotificationMessage, IESubscribeFeed).
-
-
Field Summary
-
Fields inherited from class net.sf.eBus.client.EFeed.AbstractClientTask
mFeed
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNotifyTask(ECondition condition, IESubscribeFeed feed, NotifyCallback cb)Creates a notify callback task for the given condition, feed, and message callback.NotifyTask(ENotificationMessage message, ECondition condition, IESubscribeFeed feed, NotifyCallback cb)Creates a notify callback task for the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ENotificationMessagemessage()Returns message to be forwarded to target.voidrun()Issues theESubscriber.notify(ENotificationMessage, IESubscribeFeed)callback if the message satisfies the subscription condition.
-
-
-
Constructor Detail
-
NotifyTask
public NotifyTask(ENotificationMessage message, ECondition condition, IESubscribeFeed feed, NotifyCallback cb)
Creates a notify callback task for the given parameters.- Parameters:
message- the notification message.condition- subscription condition.feed- the message is from this notification feed.cb- notification message callback.
-
NotifyTask
protected NotifyTask(ECondition condition, IESubscribeFeed feed, NotifyCallback cb)
Creates a notify callback task for the given condition, feed, and message callback.- Parameters:
condition- subscription condition.feed- message is from this feed.cb- notification message callback.
-
-
Method Detail
-
run
public void run()
Issues theESubscriber.notify(ENotificationMessage, IESubscribeFeed)callback if the message satisfies the subscription condition. Logs any client-thrown exception.
-
message
protected ENotificationMessage message()
Returns message to be forwarded to target.- Returns:
- forwarded message.
-
-