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 longstatic final byteprotected ProducerIdprotected longprotected String -
Constructor Summary
ConstructorsConstructorDescriptionMessageId(ProducerId producerId, long producerSequenceId) MessageId(ProducerInfo producerInfo, long producerSequenceId) -
Method Summary
Modifier and TypeMethodDescriptionintcopy()booleanlongbytelonginthashCode()booleanvoidsetBrokerSequenceId(long brokerSequenceId) voidsetDataLocator(Object value) Sets a locator which aids a message store in loading a message faster.voidsetEntryLocator(Object entryLocator) voidsetFutureOrSequenceLong(Object futureOrSequenceLong) voidsetPlistLocator(Object plistLocator) voidsetProducerId(ProducerId producerId) voidsetProducerSequenceId(long producerSequenceId) voidsetTextView(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 IDsvoidSets 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:
getDataStructureTypein 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:
isMarshallAwarein interfaceDataStructure
-
copy
-
compareTo
- Specified by:
compareToin 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
-