Enum CachingConnectionFactory.ConfirmType
- java.lang.Object
-
- java.lang.Enum<CachingConnectionFactory.ConfirmType>
-
- org.springframework.amqp.rabbit.connection.CachingConnectionFactory.ConfirmType
-
- All Implemented Interfaces:
Serializable
,Comparable<CachingConnectionFactory.ConfirmType>
- Enclosing class:
- CachingConnectionFactory
public static enum CachingConnectionFactory.ConfirmType extends Enum<CachingConnectionFactory.ConfirmType>
The type of publisher confirms to use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CORRELATED
Use withCorrelationData
to correlate confirmations with sent messsages.NONE
Publisher confirms are disabled (default).SIMPLE
UseRabbitTemplate#waitForConfirms()
(orwaitForConfirmsOrDie()
within scoped operations.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CachingConnectionFactory.ConfirmType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CachingConnectionFactory.ConfirmType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIMPLE
public static final CachingConnectionFactory.ConfirmType SIMPLE
UseRabbitTemplate#waitForConfirms()
(orwaitForConfirmsOrDie()
within scoped operations.
-
CORRELATED
public static final CachingConnectionFactory.ConfirmType CORRELATED
Use withCorrelationData
to correlate confirmations with sent messsages.
-
NONE
public static final CachingConnectionFactory.ConfirmType NONE
Publisher confirms are disabled (default).
-
-
Method Detail
-
values
public static CachingConnectionFactory.ConfirmType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CachingConnectionFactory.ConfirmType c : CachingConnectionFactory.ConfirmType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CachingConnectionFactory.ConfirmType valueOf(String name)
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
-
-