Enum ProtonDeliveryTagGenerator.BUILTIN
java.lang.Object
java.lang.Enum<ProtonDeliveryTagGenerator.BUILTIN>
org.apache.qpid.protonj2.engine.impl.ProtonDeliveryTagGenerator.BUILTIN
- All Implemented Interfaces:
Serializable
,Comparable<ProtonDeliveryTagGenerator.BUILTIN>
- Enclosing class:
- ProtonDeliveryTagGenerator
public static enum ProtonDeliveryTagGenerator.BUILTIN
extends Enum<ProtonDeliveryTagGenerator.BUILTIN>
An enumeration of the Proton provided
DeliveryTagGenerator
implementations.-
Enum Constant Summary
Enum ConstantDescriptionProvides aDeliveryTagGenerator
that returns a singleton empty tag value that can be used by senders that are sending settled deliveries and simply need to provide a non-null tag value to the outgoing delivery instance.Provides aDeliveryTagGenerator
that uses a pool ofDeliveryTag
instances in an attempt to reduce GC overhead on Delivery sends.Provides aDeliveryTagGenerator
that creates tags based on an incrementing numeric value starting from zero and moving upwards until the value wraps and continue back towards zero.Provides aDeliveryTagGenerator
that creates tags based on a UUID value that will be written as two long value encoded into the delivery tag bytes. -
Method Summary
Modifier and TypeMethodDescriptionabstract DeliveryTagGenerator
Returns the enum constant of this type with the specified name.static ProtonDeliveryTagGenerator.BUILTIN[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SEQUENTIAL
Provides aDeliveryTagGenerator
that creates tags based on an incrementing numeric value starting from zero and moving upwards until the value wraps and continue back towards zero. -
UUID
Provides aDeliveryTagGenerator
that creates tags based on a UUID value that will be written as two long value encoded into the delivery tag bytes. -
POOLED
Provides aDeliveryTagGenerator
that uses a pool ofDeliveryTag
instances in an attempt to reduce GC overhead on Delivery sends. The tags are created using a numeric base value that is incremented as new tag values are requested and none can be produced from the tag pool. -
EMPTY
Provides aDeliveryTagGenerator
that returns a singleton empty tag value that can be used by senders that are sending settled deliveries and simply need to provide a non-null tag value to the outgoing delivery instance.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
createGenerator
- Returns:
- a new
DeliveryTagGenerator
instance as requested from the built in types.
-