public class ItemPublishEvent<T extends Item> extends SubscriptionEvent
Constructor and Description |
---|
ItemPublishEvent(String nodeId,
List<T> eventItems)
Constructs an ItemPublishEvent with the provided list
of
Item that were published. |
ItemPublishEvent(String nodeId,
List<T> eventItems,
List<String> subscriptionIds)
Constructs an ItemPublishEvent with the provided list
of
Item that were published. |
ItemPublishEvent(String nodeId,
List<T> eventItems,
List<String> subscriptionIds,
Date publishedDate)
Constructs an ItemPublishEvent with the provided list
of
Item that were published in the past. |
Modifier and Type | Method and Description |
---|---|
List<T> |
getItems()
Get the list of
Item that were published. |
Date |
getPublishedDate()
Gets the original date the items were published.
|
boolean |
isDelayed()
Indicates whether this event was delayed.
|
String |
toString() |
getSubscriptions, setSubscriptions
public ItemPublishEvent(String nodeId, List<T> eventItems)
Item
that were published.nodeId
- The id of the node the event came fromeventItems
- The list of Item
that were publishedpublic ItemPublishEvent(String nodeId, List<T> eventItems, List<String> subscriptionIds)
Item
that were published. The list of subscription ids
represents the subscriptions that matched the event, in the case
of the user having multiple subscriptions.nodeId
- The id of the node the event came fromeventItems
- The list of Item
that were publishedsubscriptionIds
- The list of subscriptionIdspublic ItemPublishEvent(String nodeId, List<T> eventItems, List<String> subscriptionIds, Date publishedDate)
Item
that were published in the past. The published
date signifies that this is delayed event. The list of subscription ids
represents the subscriptions that matched the event, in the case
of the user having multiple subscriptions.nodeId
- The id of the node the event came fromeventItems
- The list of Item
that were publishedsubscriptionIds
- The list of subscriptionIdspublishedDate
- date of publication.public List<T> getItems()
Item
that were published.Item
public boolean isDelayed()
public Date getPublishedDate()
isDelayed()
is true.