public class Notification
extends java.lang.Object
Constructor and Description |
---|
Notification(java.lang.String eventName,
java.lang.String type,
Target target,
java.util.Date expirationDate,
java.lang.String jsonPayLoad)
Create a notification
|
Notification(java.lang.String eventName,
java.lang.String type,
Target target,
java.util.Date expirationDate,
java.lang.String jsonPayLoad,
boolean shouldBeReplicated)
Create a notification
|
Notification(java.lang.String eventName,
java.lang.String type,
Target target,
long expirationDate,
java.lang.String jsonPayLoad)
Create a notification
|
Notification(java.lang.String eventName,
java.lang.String type,
Target target,
long expirationDate,
java.lang.String jsonPayLoad,
boolean shouldBeReplicated)
Create a notification
|
Notification(java.lang.String eventName,
java.lang.String type,
Target target,
java.lang.String jsonPayLoad)
Create a notification with default expiration date to now + 10 minutes
|
Notification(java.lang.String eventName,
java.lang.String type,
Target target,
java.lang.String jsonPayLoad,
boolean shouldBeReplicated)
Create a notification with default expiration date to now + 10 minutes
|
Modifier and Type | Method and Description |
---|---|
protected void |
commitSend(Member mbr) |
java.lang.String |
getEventName() |
java.util.Date |
getExpirationDate() |
java.lang.String |
getJsonPayLoad() |
Target |
getTarget() |
java.lang.String |
getType() |
protected boolean |
isApplicable(Member mbr,
java.util.List<java.util.regex.Pattern> eventFilterPatternList,
java.util.List<java.util.regex.Pattern> typeFilterPatternList) |
protected boolean |
isCompletelySend() |
protected boolean |
isExpired() |
boolean |
isShouldBeReplicated() |
void |
setEventName(java.lang.String eventName) |
void |
setExpirationDate(java.util.Date expirationDate) |
void |
setJsonPayLoad(java.lang.String jsonPayLoad) |
void |
setShouldBeReplicated(boolean shouldBeReplicated) |
void |
setTarget(Target target) |
void |
setType(java.lang.String type) |
public Notification(java.lang.String eventName, java.lang.String type, Target target, java.lang.String jsonPayLoad)
eventName
- eventName of the notificationtype
- type of the notificationtarget
- the Target
of the notification (must not be null)jsonPayLoad
- the json payloadpublic Notification(java.lang.String eventName, java.lang.String type, Target target, java.lang.String jsonPayLoad, boolean shouldBeReplicated)
eventName
- eventName of the notificationtype
- type of the notificationtarget
- the Target
of the notification (must not be null)jsonPayLoad
- the json payloadshouldBeReplicated
- true if jsync replication of the notification should be donepublic Notification(java.lang.String eventName, java.lang.String type, Target target, java.util.Date expirationDate, java.lang.String jsonPayLoad)
eventName
- eventName of the notificationtype
- type of the notificationtarget
- the Target
of the notification (must not be null)expirationDate
- the Date
of expiration of this notificationjsonPayLoad
- the json payloadpublic Notification(java.lang.String eventName, java.lang.String type, Target target, java.util.Date expirationDate, java.lang.String jsonPayLoad, boolean shouldBeReplicated)
eventName
- eventName of the notificationtype
- type of the notificationtarget
- the Target
of the notification (must not be null)expirationDate
- the Date
of expiration of this notificationjsonPayLoad
- the json payloadshouldBeReplicated
- true if jsync replication of the notification should be donepublic Notification(java.lang.String eventName, java.lang.String type, Target target, long expirationDate, java.lang.String jsonPayLoad)
eventName
- eventName of the notificationtype
- type of the notificationtarget
- the Target
of the notification (must not be null)expirationDate
- the date of expiration of this notificationjsonPayLoad
- the json payloadpublic Notification(java.lang.String eventName, java.lang.String type, Target target, long expirationDate, java.lang.String jsonPayLoad, boolean shouldBeReplicated)
eventName
- eventName of the notificationtype
- type of the notificationtarget
- the Target
of the notification (must not be null)expirationDate
- the date of expiration of this notificationjsonPayLoad
- the json payloadshouldBeReplicated
- true if jsync replication of the notification should be donepublic java.lang.String getEventName()
public void setEventName(java.lang.String eventName)
public Target getTarget()
public void setTarget(Target target)
public java.util.Date getExpirationDate()
public void setExpirationDate(java.util.Date expirationDate)
public java.lang.String getJsonPayLoad()
public void setJsonPayLoad(java.lang.String jsonPayLoad)
public java.lang.String getType()
public void setType(java.lang.String type)
public boolean isShouldBeReplicated()
public void setShouldBeReplicated(boolean shouldBeReplicated)
protected boolean isApplicable(Member mbr, java.util.List<java.util.regex.Pattern> eventFilterPatternList, java.util.List<java.util.regex.Pattern> typeFilterPatternList)
protected void commitSend(Member mbr)
protected boolean isExpired()
protected boolean isCompletelySend()
Copyright © 2001-2018 Jalios SA. All Rights Reserved.