Reputation: 25
interface: MessageId impl: MessageIdImpl BatchMessageIdImpl RawMessageIdImpl
The implement have different properties, different toString()
method, that confused me much.
Upvotes: 0
Views: 1177
Reputation: 2876
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 use toByteArray
and fromByteArray
methods.
Upvotes: 1