getKey
Object getKey(Message message)
Generate a unique key for the message that is repeatable on redelivery. Implementations should be very careful
about assuming uniqueness of any element of the message, especially considering the requirement that it be
repeatable. A message id is ideal, but may not be present (AMQP does not mandate it), and the message body is a
byte array whose contents might be repeatable, but its object value is not.
- Parameters:
message
- the message to generate a key for
- Returns:
- a unique key for this message