@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()
PushDeviceTuple
public 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()
PushDeviceTuple
public void setPostedTimestamp(Timestamp postedTimestamp)
PushDeviceTuple
public void setStatus(int status)
PushDeviceTuple
status
- New status for this PushDeviceTuple
public int getStatus()
PushDeviceTuple
PushDeviceTuple
public void setSent()
PushDeviceTuple
to
PushDeviceTuple.STATUS_SENT
public boolean isSent()
PushDeviceTuple
is
PushDeviceTuple.STATUS_SENT
public boolean isWaitingRetry()
PushDeviceTuple
is
PushDeviceTuple.STATUS_WAITING_RETRY
public void setWaitingRetry()
PushDeviceTuple
to
PushDeviceTuple.STATUS_WAITING_RETRY
public Long getVersionNumber()
PushDeviceTuple
PushDeviceTuple
public void setVersionNumber(Long versionNumber)
PushDeviceTuple
Version
- number for this PushDeviceTuple
Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.