Package org.apache.qpid.protonj2.engine
Interface DeliveryTagGenerator
- All Known Implementing Classes:
ProtonDeliveryTagGenerator
,ProtonPooledTagGenerator
,ProtonSequentialTagGenerator
,ProtonUuidTagGenerator
public interface DeliveryTagGenerator
Transfer tag generators can be assigned to
Sender
links in order to
allow the link to automatically assign a transfer tag to each outbound delivery.
Depending on the Sender different tag generators can operate in a fashion that is
most efficient for that link such as caching tags for links that will produce a
large number of messages to avoid GC overhead, while for other links simpler
generator types could be used.-
Method Summary
Modifier and TypeMethodDescriptionnextTag()
Creates and returns the nextDeliveryTag
tag that should be used when populating anOutgoingDelivery
.
-
Method Details
-
nextTag
DeliveryTag nextTag()Creates and returns the nextDeliveryTag
tag that should be used when populating anOutgoingDelivery
.- Returns:
- the next
DeliveryTag
to use for anOutgoingDelivery
.
-