interface: MessageId impl: MessageIdImpl BatchMessageIdImpl RawMessageIdImpl
The implement have different properties, different toString()
method, that confused me much.
interface: MessageId impl: MessageIdImpl BatchMessageIdImpl RawMessageIdImpl
The implement have different properties, different toString()
method, that confused me much.
You should always be using message id through the interface, it supports comparison between different implementation.
toString
method should only be used for logging purpose. If you need to save it somewhere and restore later you need to usetoByteArray
andfromByteArray
methods.