Enum ProtocolType

java.lang.Object
java.lang.Enum<ProtocolType>
com.hazelcast.instance.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
  • Enum Constant Details

  • Method Details

    • values

      public static ProtocolType[] 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

      public static ProtocolType 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 name
      NullPointerException - if the argument is null
    • valueOf

      public static ProtocolType valueOf​(int ordinal)
      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 name
      NullPointerException - if the argument is null
    • valuesAsSet

      public static Set<ProtocolType> valuesAsSet()
    • getServerSocketCardinality

      public int getServerSocketCardinality()
    • getDescriptor

      public String getDescriptor()
    • getId

      public int getId()
    • getById

      public static ProtocolType getById​(int id)