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 toSender
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeliveryTag
nextTag()
Creates and returns the nextDeliveryTag
tag that should be used when populating anOutgoingDelivery
.
-
-
-
Method Detail
-
nextTag
DeliveryTag nextTag()
Creates and returns the nextDeliveryTag
tag that should be used when populating anOutgoingDelivery
.- Returns:
- the next
DeliveryTag
to use for anOutgoingDelivery
.
-
-