|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.messagemgr.TransientMessageHandle
A message handle is used to indirectly reference a message in the message manager.
Constructor Summary | |
TransientMessageHandle()
Default constructor required to support Serialization |
Method Summary | |
void |
clear()
Clear the message handle |
void |
destroy()
Destroy this handle |
boolean |
equals(java.lang.Object object)
|
long |
getAcceptedTime()
Return time that the corresponding message was accepted. |
long |
getClientId()
Retrieve the client identity associated with this handle |
java.lang.String |
getConsumerName()
Return the consumer namne |
boolean |
getDelivered()
Check whether an attempt has already been made to deliver the message before. |
JmsDestination |
getDestination()
Return the destination for this handle |
long |
getExpiryTime()
Return the message expiry time |
MessageImpl |
getMessage()
Return the associated message or null if it is invalid |
MessageId |
getMessageId()
Return the message id |
int |
getPriority()
Return the priority of the underlying message |
long |
getSequenceNumber()
Return message's sequence number |
int |
hashCode()
|
boolean |
isPersistent()
Check whether the the DeliveryMode of the underlying message
is PERSISTENT |
void |
readExternal(java.io.ObjectInput stream)
|
void |
setAcceptedTime(long time)
Set the time that the message was accepted by the server |
void |
setClientId(long clientId)
Set the client id, that owns this handle |
void |
setConsumerName(java.lang.String name)
Set the consumer endpoint that owns this handle. |
void |
setDelivered()
Set the message, corresponding to this handle, has already been delivered once before |
void |
setDelivered(boolean value)
Set the state of the delivered flag to the specified value |
void |
setDestination(JmsDestination destination)
Set the destination that owns this handle |
void |
setExpiryTime(long time)
Set the message expiry time |
void |
setMessageId(MessageId id)
Set the message identity |
void |
setPriority(int priority)
Set the message priority |
void |
setSequenceNumber(long seq)
Set the message's sequence number |
java.lang.String |
toString()
Return a stringified version of the handle |
void |
writeExternal(java.io.ObjectOutput stream)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TransientMessageHandle()
Method Detail |
public MessageId getMessageId()
getMessageId
in interface MessageHandle
public void setMessageId(MessageId id)
id
- - the message identitypublic void setDelivered()
setDelivered
in interface MessageHandle
public void setDelivered(boolean value)
setDelivered
in interface MessageHandle
boolean
- valuepublic boolean getDelivered()
getDelivered
in interface MessageHandle
public void setPriority(int priority)
setPriority
in interface MessageHandle
int
- - the message prioritypublic int getPriority()
getPriority
in interface MessageHandle
public void setAcceptedTime(long time)
setAcceptedTime
in interface MessageHandle
time
- - accepted timepublic long getAcceptedTime()
getAcceptedTime
in interface MessageHandle
public void setExpiryTime(long time)
setExpiryTime
in interface MessageHandle
org.exolab.jms.message.MessageHandle
time
- - time that it was set in mspublic long getExpiryTime()
getExpiryTime
in interface MessageHandle
public void setSequenceNumber(long seq)
setSequenceNumber
in interface MessageHandle
seq
- - sequence timepublic long getSequenceNumber()
getSequenceNumber
in interface MessageHandle
public void setDestination(JmsDestination destination)
setDestination
in interface MessageHandle
destination
- - the destinationpublic JmsDestination getDestination()
getDestination
in interface MessageHandle
public void setClientId(long clientId)
setClientId
in interface MessageHandle
clientId
- - client identitypublic long getClientId()
getClientId
in interface MessageHandle
public void setConsumerName(java.lang.String name)
MessageHandle
setConsumerName
in interface MessageHandle
org.exolab.jms.message.MessageHandle
name
- - consumer namepublic java.lang.String getConsumerName()
MessageHandle
getConsumerName
in interface MessageHandle
org.exolab.jms.message.MessageHandle
public MessageImpl getMessage()
getMessage
in interface MessageHandle
public java.lang.String toString()
toString
in class java.lang.Object
public void clear()
clear
in interface MessageHandle
public boolean isPersistent()
MessageHandle
DeliveryMode
of the underlying message
is PERSISTENTisPersistent
in interface MessageHandle
public void destroy()
destroy
in interface MessageHandle
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput stream) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |