Package com.azure.spring.messaging
Class ConsumerIdentifier
java.lang.Object
com.azure.spring.messaging.ConsumerIdentifier
The class to describe the consumer identifier according to the consumer destination and group.
-
Constructor Summary
ConstructorDescriptionConsumerIdentifier
(String destination) Construct an instance via the consumer destination, which is used for Service Bus Queue.ConsumerIdentifier
(String destination, String group) Construct an instance via the consumer destination and group, which is used for Event Hubs and Service Bus Topic. -
Method Summary
-
Constructor Details
-
ConsumerIdentifier
Construct an instance via the consumer destination, which is used for Service Bus Queue.- Parameters:
destination
- the consumer destination, should be a Service Bus Queue name.
-
ConsumerIdentifier
Construct an instance via the consumer destination and group, which is used for Event Hubs and Service Bus Topic.- Parameters:
destination
- the consumer destination.group
- the group.
-
-
Method Details
-
getDestination
Get the destination.- Returns:
- the destination.
-
getGroup
Get the group.- Returns:
- the group.
-
hasGroup
public boolean hasGroup()Return whether the consumer is in a group or not.- Returns:
- true if the consumer is in a group.
-
equals
-
hashCode
public int hashCode()
-