Enum CachingConnectionFactory.CacheMode
- java.lang.Object
-
- java.lang.Enum<CachingConnectionFactory.CacheMode>
-
- org.springframework.amqp.rabbit.connection.CachingConnectionFactory.CacheMode
-
- All Implemented Interfaces:
Serializable
,Comparable<CachingConnectionFactory.CacheMode>
- Enclosing class:
- CachingConnectionFactory
public static enum CachingConnectionFactory.CacheMode extends Enum<CachingConnectionFactory.CacheMode>
The cache mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANNEL
Cache channels - single connection.CONNECTION
Cache connections and channels within each connection.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CachingConnectionFactory.CacheMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static CachingConnectionFactory.CacheMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHANNEL
public static final CachingConnectionFactory.CacheMode CHANNEL
Cache channels - single connection.
-
CONNECTION
public static final CachingConnectionFactory.CacheMode CONNECTION
Cache connections and channels within each connection.
-
-
Method Detail
-
values
public static CachingConnectionFactory.CacheMode[] 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.CacheMode c : CachingConnectionFactory.CacheMode.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.CacheMode 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
-
-