AmqpMessageId Class
- java.
lang. Object - com.
azure. core. amqp. models. AmqpMessageId
- com.
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 |
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java