com.hazelcast.instance

## Enum ProtocolType

- java.lang.Object
- - java.lang.Enum<ProtocolType>
  - - com.hazelcast.instance.ProtocolType

- All Implemented Interfaces:
    Serializable, Comparable<ProtocolType>

      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.

  Note: names of this enum are used for stats sent to Management Center, do not rename.

  Since:
    3.12
  See Also:
    `NetworkConfig`, `AdvancedNetworkConfig`

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant and Description
    `CLIENT`
    `MEMBER` Ordinals of this enum are used for IDS inside `EndpointQualifier`.
    `MEMCACHE`
    `REST`
    `WAN`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getDescriptor()`
    `int` | `getServerSocketCardinality()`
    `static ProtocolType` | `valueOf(int ordinal)`
    `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()`

    - ### Methods inherited from class java.lang.Enum

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

    - ### Methods inherited from class java.lang.Object

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### MEMBER

          public static final ProtocolType MEMBER

      Ordinals of this enum are used for IDS inside `EndpointQualifier`. Do not re-arrange, only append new values at end.

    - #### CLIENT

          public static final ProtocolType CLIENT

    - #### WAN

          public static final ProtocolType WAN

    - #### REST

          public static final ProtocolType REST

    - #### MEMCACHE

          public static final ProtocolType MEMCACHE

  - ### Method Detail

    - #### values

          public static ProtocolType[] 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 (ProtocolType c : ProtocolType.values())
              System.out.println(c);

      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)

    - #### valuesAsSet

          public static Set<ProtocolType> valuesAsSet()

    - #### getServerSocketCardinality

          public int getServerSocketCardinality()

    - #### getDescriptor

          public String getDescriptor()

Copyright © 2019. All rights reserved.