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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.
Azure SDK for Java