Package org.apache.activemq.command
Class MessageId
java.lang.Object
org.apache.activemq.command.MessageId
- All Implemented Interfaces:
Comparable<MessageId>
,DataStructure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected long
static final byte
protected ProducerId
protected long
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionMessageId
(ProducerId producerId, long producerSequenceId) MessageId
(ProducerInfo producerInfo, long producerSequenceId) -
Method Summary
Modifier and TypeMethodDescriptionint
copy()
boolean
long
byte
long
int
hashCode()
boolean
void
setBrokerSequenceId
(long brokerSequenceId) void
setDataLocator
(Object value) Sets a locator which aids a message store in loading a message faster.void
setEntryLocator
(Object entryLocator) void
setFutureOrSequenceLong
(Object futureOrSequenceLong) void
setPlistLocator
(Object plistLocator) void
setProducerId
(ProducerId producerId) void
setProducerSequenceId
(long producerSequenceId) void
setTextView
(String key) Sets the transient text view of the message which will be ignored if the message is marshaled on a transport; so is only for in-JVM changes to accommodate foreign JMS message IDsvoid
Sets the value as a StringtoString()
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
textView
-
producerId
-
producerSequenceId
protected long producerSequenceId -
brokerSequenceId
protected long brokerSequenceId
-
-
Constructor Details
-
MessageId
public MessageId() -
MessageId
-
MessageId
-
MessageId
-
MessageId
-
-
Method Details
-
setValue
Sets the value as a String -
setTextView
Sets the transient text view of the message which will be ignored if the message is marshaled on a transport; so is only for in-JVM changes to accommodate foreign JMS message IDs -
getTextView
- Returns:
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
equals
-
hashCode
public int hashCode() -
toProducerKey
-
toString
-
getProducerId
-
setProducerId
-
getProducerSequenceId
public long getProducerSequenceId() -
setProducerSequenceId
public void setProducerSequenceId(long producerSequenceId) -
getBrokerSequenceId
public long getBrokerSequenceId() -
setBrokerSequenceId
public void setBrokerSequenceId(long brokerSequenceId) -
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAware
in interfaceDataStructure
-
copy
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MessageId>
- Returns:
- See Also:
-
getDataLocator
- Returns:
- a locator which aids a message store in loading a message faster. Only used by the message stores.
-
setDataLocator
Sets a locator which aids a message store in loading a message faster. Only used by the message stores. -
getFutureOrSequenceLong
-
setFutureOrSequenceLong
-
getEntryLocator
-
setEntryLocator
-
getPlistLocator
-
setPlistLocator
-