public class MessageId extends Object implements DataStructure, Comparable<MessageId>
Modifier and Type | Field and Description |
---|---|
protected long |
brokerSequenceId |
static byte |
DATA_STRUCTURE_TYPE |
protected ProducerId |
producerId |
protected long |
producerSequenceId |
protected String |
textView |
Constructor and Description |
---|
MessageId() |
MessageId(ProducerId producerId,
long producerSequenceId) |
MessageId(ProducerInfo producerInfo,
long producerSequenceId) |
MessageId(String messageKey) |
MessageId(String producerId,
long producerSequenceId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MessageId other) |
MessageId |
copy() |
boolean |
equals(Object o) |
long |
getBrokerSequenceId() |
Object |
getDataLocator() |
byte |
getDataStructureType() |
Object |
getEntryLocator() |
Object |
getFutureOrSequenceLong() |
Object |
getPlistLocator() |
ProducerId |
getProducerId() |
long |
getProducerSequenceId() |
String |
getTextView() |
int |
hashCode() |
boolean |
isMarshallAware() |
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 IDs
|
void |
setValue(String messageKey)
Sets the value as a String
|
String |
toProducerKey() |
String |
toString() |
public static final byte DATA_STRUCTURE_TYPE
protected ProducerId producerId
protected long producerSequenceId
protected long brokerSequenceId
public MessageId()
public MessageId(ProducerInfo producerInfo, long producerSequenceId)
public MessageId(ProducerId producerId, long producerSequenceId)
public void setTextView(String key)
public String getTextView()
public byte getDataStructureType()
getDataStructureType
in interface DataStructure
public String toProducerKey()
public ProducerId getProducerId()
public void setProducerId(ProducerId producerId)
public long getProducerSequenceId()
public void setProducerSequenceId(long producerSequenceId)
public long getBrokerSequenceId()
public void setBrokerSequenceId(long brokerSequenceId)
public boolean isMarshallAware()
isMarshallAware
in interface DataStructure
public int compareTo(MessageId other)
compareTo
in interface Comparable<MessageId>
- Comparable.compareTo(java.lang.Object)
public Object getDataLocator()
public void setDataLocator(Object value)
public Object getFutureOrSequenceLong()
public void setFutureOrSequenceLong(Object futureOrSequenceLong)
public Object getEntryLocator()
public void setEntryLocator(Object entryLocator)
public Object getPlistLocator()
public void setPlistLocator(Object plistLocator)
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.