AmqpMessageId Class

  • java.lang.Object
    • com.azure.core.amqp.models.AmqpMessageId

public final class AmqpMessageId

This represents Message id. Amqp specification support message id in various types. This class only implements String representation at present.

Create and retrieve message id

AmqpMessageId messageId = new AmqpMessageId("my-message-id");
 // Retrieve Message id
 String id = messageId.toString();
 System.out.println("Message Id " + id);

Constructor Summary

Constructor Description
AmqpMessageId(String messageId)

Creates the AmqpMessageId with given messageId.

Method Summary

Modifier and Type Method and Description
boolean equals(Object other)
int hashCode()
String toString()

Methods inherited from java.lang.Object

Constructor Details

AmqpMessageId

public AmqpMessageId(String messageId)

Creates the AmqpMessageId with given messageId.

Parameters:

messageId - representing id of the message.

Method Details

equals

public boolean equals(Object other)

Overrides:

AmqpMessageId.equals(Object other)

Parameters:

other

hashCode

public int hashCode()

Overrides:

AmqpMessageId.hashCode()

toString

public String toString()

Overrides:

AmqpMessageId.toString()

Applies to