Class ProtonSequentialTagGenerator
- java.lang.Object
-
- org.apache.qpid.protonj2.engine.impl.ProtonDeliveryTagGenerator
-
- org.apache.qpid.protonj2.engine.impl.ProtonSequentialTagGenerator
-
- All Implemented Interfaces:
DeliveryTagGenerator
- Direct Known Subclasses:
ProtonPooledTagGenerator
public class ProtonSequentialTagGenerator extends ProtonDeliveryTagGenerator
A Built in protonDeliveryTagGenerator
that creates new tags using a sequential numeric value which is encoded using the most compact representation of the numeric value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ProtonSequentialTagGenerator.ProtonNumericDeliveryTag
-
Nested classes/interfaces inherited from class org.apache.qpid.protonj2.engine.impl.ProtonDeliveryTagGenerator
ProtonDeliveryTagGenerator.BUILTIN
-
-
Field Summary
Fields Modifier and Type Field Description protected long
nextTagId
-
Constructor Summary
Constructors Constructor Description ProtonSequentialTagGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeliveryTag
nextTag()
Creates and returns the nextDeliveryTag
tag that should be used when populating anOutgoingDelivery
.
-
-
-
Method Detail
-
nextTag
public DeliveryTag nextTag()
Description copied from interface:DeliveryTagGenerator
Creates and returns the nextDeliveryTag
tag that should be used when populating anOutgoingDelivery
.- Returns:
- the next
DeliveryTag
to use for anOutgoingDelivery
.
-
-