Package org.apache.beam.sdk.io.jms
Enum Class JmsIO.AcknowledgeMode
- All Implemented Interfaces:
Serializable,Comparable<JmsIO.AcknowledgeMode>,Constable
- Enclosing class:
JmsIO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAcknowledge on checkpoint finalization with session isolation across checkpoints.CLIENT_ACKNOWLEDGE but without session isolation across checkpoints.Acknowledge messages individually on checkpoint finalization. -
Method Summary
Modifier and TypeMethodDescriptionstatic JmsIO.AcknowledgeModeReturns the enum constant of this class with the specified name.static JmsIO.AcknowledgeMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT_ACKNOWLEDGE
Acknowledge on checkpoint finalization with session isolation across checkpoints. Due to that runners may or may not finalize checkpoint in timely minor, unacked messages in unclosed consumer could be stuck when source throughput is zero. When using this mode in low throughput use cases, client-side prefetch buffers should be disabled (e.g. setprefetch=0for ActiveMQ) in connection factory properties. -
CLIENT_ACKNOWLEDGE_UNSAFE
CLIENT_ACKNOWLEDGE but without session isolation across checkpoints. Acknowledging a message implicitly acknowledge all messages received up to that point per JMS spec. Best for performance but not safe on worker crash or scaling down. Good when best effort delivery is acceptable. -
INDIVIDUAL_ACKNOWLEDGE
Acknowledge messages individually on checkpoint finalization. Recommended for JMS providers that support individual message acknowledgment (e.g., ActiveMQ, Amazon MQ, Artemis, Qpid JMS).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-