Class ProtonPooledTagGenerator

  • All Implemented Interfaces:
    DeliveryTagGenerator

    public class ProtonPooledTagGenerator
    extends ProtonSequentialTagGenerator
    Built in Transfer DeliveryTag generator that uses a fixed size tag pool to reduce GC overhead by reusing tags that have been released from settled messages. When not using cached tags the generator creates new tags using a running tag counter of type Long that assumes that when it wraps the user has already release all tags within the lower range of the tag counter.