Class ListenerNotification
- java.lang.Object
-
- gov.usgs.earthquake.distribution.roundrobinnotifier.ListenerNotification
-
public class ListenerNotification extends java.lang.Object
Track notification for a specific listener.
-
-
Field Summary
Fields Modifier and Type Field Description int
attempts
The number of attempts to deliver.NotificationEvent
event
The notification to deliver.java.util.Date
lastAttempt
Time of the last attempt.
-
Constructor Summary
Constructors Constructor Description ListenerNotification(NotificationEvent event)
Create a new ListenerNotification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductId
getProductId()
-
-
-
Field Detail
-
event
public final NotificationEvent event
The notification to deliver.
-
attempts
public int attempts
The number of attempts to deliver.
-
lastAttempt
public java.util.Date lastAttempt
Time of the last attempt.
-
-
Constructor Detail
-
ListenerNotification
public ListenerNotification(NotificationEvent event)
Create a new ListenerNotification.- Parameters:
event
- the notification to deliver.
-
-
Method Detail
-
getProductId
public ProductId getProductId()
- Returns:
- the product id from the notification.
-
-