Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.service
Class MessageIdentity

    java.lang.Object
      org.codehaus.activemq.service.MessageIdentity

All Implemented Interfaces:
  java.lang.Comparable, java.io.Serializable

public class MessageIdentity
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Represents a message identity, either by using a unique message number, which is ordered and must not be zero or by specifying the String messageID.

Typically a client accessing the MessageStore may have one or the other. Depending on which one is specified the other value may be filled in by operations on the MessageStore

Version:
  $Revision: 1.7 $
See Also:
  Serialized Form

Constructor Summary
`MessageIdentity()`
`MessageIdentity(java.lang.String messageID)`
`MessageIdentity(java.lang.String messageID, java.lang.Object sequenceNumber)`

Method Summary
`int` | `compareTo(java.lang.Object object)`
`boolean` | `equals(MessageIdentity that)`
`boolean` | `equals(java.lang.Object that)`
`java.lang.String` | `getMessageID()`
`java.lang.Object` | `getSequenceNumber()`
`int` | `hashCode()`
`void` | `setMessageID(java.lang.String messageID)`
`void` | `setSequenceNumber(java.lang.Object sequenceNumber)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### MessageIdentity

    public MessageIdentity()

### MessageIdentity

    public MessageIdentity(java.lang.String messageID)

### MessageIdentity

    public MessageIdentity(java.lang.String messageID,
                           java.lang.Object sequenceNumber)

Method Detail

### hashCode

    public int hashCode()

### equals

    public boolean equals(java.lang.Object that)

### equals

    public boolean equals(MessageIdentity that)

### compareTo

    public int compareTo(java.lang.Object object)

  Specified by:
    `compareTo` in interface `java.lang.Comparable`

### toString

    public java.lang.String toString()

### getMessageID

    public java.lang.String getMessageID()

### setMessageID

    public void setMessageID(java.lang.String messageID)

### getSequenceNumber

    public java.lang.Object getSequenceNumber()

  Returns:
    the sequence number which may be a number or some database specific type

### setSequenceNumber

    public void setSequenceNumber(java.lang.Object sequenceNumber)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Protique, Ltd.. All Rights Reserved.