@Entity public class PushDeviceTuple extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_FAILED
Status indicating the a maximum number of retries has failed, therefore the message is
seen as failed, and no further retries will be attempted
|
static int |
STATUS_PENDING
Status indicating that the message is pending to be sent, i.e a message just added
|
static int |
STATUS_SENT
Status indicatiing that the message has been sent
|
static int |
STATUS_WAITING_RETRY
Status indicating that sending the message has failed once, but waiting for a retry attempt
|
| Constructor and Description |
|---|
PushDeviceTuple()
Creates a new instance of a
PushDeviceTuple |
| Modifier and Type | Method and Description |
|---|---|
Long |
getDeviceId()
Gets the ID of the device this
PushDeviceTuple is linked to. |
Long |
getId()
Returns the id of this
PushDeviceTuple |
Timestamp |
getPostedTimestamp()
Gets the timestamp of the last update of this
PushDeviceTuple |
Long |
getPushId()
Gets the ID of the
Push this PushDeviceTuple is
linked to. |
int |
getStatus()
Returns this status of this
PushDeviceTuple |
Long |
getVersionNumber()
Gets the version number for this
PushDeviceTuple |
boolean |
isSent()
Returns true if the status of this
PushDeviceTuple is
PushDeviceTuple.STATUS_SENT |
boolean |
isWaitingRetry()
Returns true if the status of this
PushDeviceTuple is
PushDeviceTuple.STATUS_WAITING_RETRY |
void |
setDeviceId(Long deviceId)
Gets the ID of the device this
PushDeviceTuple is linked to. |
void |
setId(Long tupleId)
Sets the id of this
|
void |
setPostedTimestamp(Timestamp postedTimestamp)
Gets the timestamp of the last update of this
PushDeviceTuple |
void |
setPushId(Long pushId)
Sets the ID of the
Push this PushDeviceTuple is
linked to. |
void |
setSent()
Sets the status of this
PushDeviceTuple to
PushDeviceTuple.STATUS_SENT |
void |
setStatus(int status)
Sets the status of this
PushDeviceTuple |
void |
setVersionNumber(Long versionNumber)
Sets the version number for this
PushDeviceTuple |
void |
setWaitingRetry()
Sets the status of this
PushDeviceTuple to
PushDeviceTuple.STATUS_WAITING_RETRY |
String |
toString() |
public static final int STATUS_PENDING
public static final int STATUS_SENT
public static final int STATUS_WAITING_RETRY
public static final int STATUS_FAILED
public PushDeviceTuple()
PushDeviceTuplepublic Long getPushId()
Push this PushDeviceTuple is
linked to.public void setPushId(Long pushId)
Push this PushDeviceTuple is
linked to.public Long getDeviceId()
PushDeviceTuple is linked to.PushDeviceTuple is linked to.public void setDeviceId(Long deviceId)
PushDeviceTuple is linked to.public Timestamp getPostedTimestamp()
PushDeviceTuplepublic void setPostedTimestamp(Timestamp postedTimestamp)
PushDeviceTuplepublic void setStatus(int status)
PushDeviceTuplestatus - New status for this PushDeviceTuplepublic int getStatus()
PushDeviceTuplePushDeviceTuplepublic void setSent()
PushDeviceTuple to
PushDeviceTuple.STATUS_SENTpublic boolean isSent()
PushDeviceTuple is
PushDeviceTuple.STATUS_SENTpublic boolean isWaitingRetry()
PushDeviceTuple is
PushDeviceTuple.STATUS_WAITING_RETRYpublic void setWaitingRetry()
PushDeviceTuple to
PushDeviceTuple.STATUS_WAITING_RETRYpublic Long getVersionNumber()
PushDeviceTuplePushDeviceTuplepublic void setVersionNumber(Long versionNumber)
PushDeviceTupleVersion - number for this PushDeviceTupleCopyright © 2011-2013 The Kuali Foundation. All Rights Reserved.