public abstract class QueueEntry<M>
extends java.lang.Object
Constructor and Description |
---|
QueueEntry(java.lang.String msgId,
long leaseTimeout,
int priority,
long expiresTime) |
Modifier and Type | Method and Description |
---|---|
long |
getExpiresTime() |
long |
getLeaseExpires() |
java.lang.String |
getMsgId() |
M |
getPayload() |
int |
getPriority() |
long |
getReadSequence() |
boolean |
isExpired() |
boolean |
isLease()
Returns true if we can get a lease to this entry
|
boolean |
isRead() |
M |
readPayload() |
void |
rollback() |
void |
setPayload(M payload) |
void |
setReadSequence(long readSequence) |
java.lang.String |
toString() |
public QueueEntry(java.lang.String msgId, long leaseTimeout, int priority, long expiresTime)
public java.lang.String getMsgId()
public long getLeaseExpires()
public long getExpiresTime()
public boolean isLease()
public boolean isRead()
public boolean isExpired()
public long getReadSequence()
public void setReadSequence(long readSequence)
public void rollback()
public int getPriority()
public M readPayload()
public final M getPayload()
public final void setPayload(M payload)
public java.lang.String toString()
toString
in class java.lang.Object