Package com.hazelcast.instance
Enum ProtocolType
- All Implemented Interfaces:
Serializable
,Comparable<ProtocolType>
,java.lang.constant.Constable
public enum ProtocolType extends Enum<ProtocolType>
Types of server sockets. A member typically responds to several types of protocols
for member-to-member, client-member protocol, WAN communication etc. The default
configuration uses a single server socket to listen for all kinds of protocol
types configured, while
AdvancedNetworkConfig
allows
configuration of multiple server sockets.- Since:
- 3.12
- See Also:
NetworkConfig
,AdvancedNetworkConfig
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static ProtocolType
getById(int id)
String
getDescriptor()
int
getId()
int
getServerSocketCardinality()
static ProtocolType
valueOf(int ordinal)
Returns the enum constant of this type with the specified name.static ProtocolType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProtocolType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.static Set<ProtocolType>
valuesAsSet()
-
Enum Constant Details
-
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
-
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:
ordinal
- 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
-
valuesAsSet
-
getServerSocketCardinality
public int getServerSocketCardinality() -
getDescriptor
-
getId
public int getId() -
getById
-