Package org.apache.cassandra.net
Enum MessagingService.Version
- java.lang.Object
-
- java.lang.Enum<MessagingService.Version>
-
- org.apache.cassandra.net.MessagingService.Version
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MessagingService.Version>
- Enclosing class:
- MessagingService
public static enum MessagingService.Version extends java.lang.Enum<MessagingService.Version>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VERSION_30
Deprecated.See CASSANDRA-18314VERSION_3014
Deprecated.See CASSANDRA-18314VERSION_40
VERSION_50
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<MessagingService.Version>
supportedVersions()
static MessagingService.Version
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MessagingService.Version[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSION_30
@Deprecated(since="5.0") public static final MessagingService.Version VERSION_30
Deprecated.See CASSANDRA-18314
-
VERSION_3014
@Deprecated(since="5.0") public static final MessagingService.Version VERSION_3014
Deprecated.See CASSANDRA-18314
-
VERSION_40
public static final MessagingService.Version VERSION_40
-
VERSION_50
public static final MessagingService.Version VERSION_50
-
-
Method Detail
-
values
public static MessagingService.Version[] 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 (MessagingService.Version c : MessagingService.Version.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessagingService.Version valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
supportedVersions
public static java.util.List<MessagingService.Version> supportedVersions()
-
-