@Entity public class NotificationEntity extends AuditableEntityWithResourceSupport
Modifier and Type | Class and Description |
---|---|
(package private) static class |
NotificationEntity.Status |
Modifier and Type | Field and Description |
---|---|
private EventEntity |
event |
private static int |
MAX_RETRIES |
private static long[] |
RETRY_INTERVALS_WITHIN_24_HOURS |
private int |
retryCount |
private java.time.LocalDateTime |
selectDate |
private static long |
serialVersionUID |
private NotificationEntity.Status |
status |
(package private) static java.lang.String |
TABLE_NAME |
private WebhookEntity |
webhook |
Constructor and Description |
---|
NotificationEntity() |
Modifier and Type | Method and Description |
---|---|
static NotificationEntity |
create(WebhookEntity webhook,
EventEntity event) |
void |
fail() |
EventEntity |
getEvent() |
int |
getRetryCount() |
java.time.LocalDateTime |
getSelectDate() |
NotificationEntity.Status |
getStatus() |
WebhookEntity |
getWebhook() |
void |
inProgress() |
void |
reschedule() |
void |
setEvent(EventEntity event) |
void |
setRetryCount(int retryCount) |
void |
setSelectDate(java.time.LocalDateTime selectDate) |
void |
setStatus(NotificationEntity.Status status) |
void |
setWebhook(WebhookEntity webhook) |
void |
succeded() |
java.lang.String |
toString() |
getCreatedOn, getUpdatedOn, setCreatedOn, setUpdatedOn
add, add, equals, getId, getLink, getLinks, getSelfLinkUri, hashCode, hasLink, hasLinks, removeLinks
private static final long serialVersionUID
static final java.lang.String TABLE_NAME
private static final long[] RETRY_INTERVALS_WITHIN_24_HOURS
private static final int MAX_RETRIES
private EventEntity event
private WebhookEntity webhook
private NotificationEntity.Status status
private int retryCount
private java.time.LocalDateTime selectDate
public static NotificationEntity create(WebhookEntity webhook, EventEntity event)
public EventEntity getEvent()
public void setEvent(EventEntity event)
public WebhookEntity getWebhook()
public void setWebhook(WebhookEntity webhook)
public NotificationEntity.Status getStatus()
public void setStatus(NotificationEntity.Status status)
public int getRetryCount()
public void setRetryCount(int retryCount)
public java.time.LocalDateTime getSelectDate()
public void setSelectDate(java.time.LocalDateTime selectDate)
public void inProgress()
public void succeded()
public void reschedule()
public void fail()
public java.lang.String toString()
toString
in class ResourceSupport