Enum Class MemcachedConfigurations

java.lang.Object
java.lang.Enum<MemcachedConfigurations>
org.eclipse.jnosql.databases.memcached.communication.MemcachedConfigurations
All Implemented Interfaces:
Serializable, Comparable<MemcachedConfigurations>, Constable, Supplier<String>

public enum MemcachedConfigurations extends Enum<MemcachedConfigurations> implements Supplier<String>
An enumeration to show the available options to connect to the Memcached database. It implements Supplier, where its it returns the property name that might be overwritten by the system environment using Eclipse Microprofile or Jakarta Config API.
See Also:
  • Settings
  • Enum Constant Details

    • DAEMON

      public static final MemcachedConfigurations DAEMON
      The daemon state of the IO thread (defaults to true).
    • MAX_RECONNECT_DELAY

      public static final MemcachedConfigurations MAX_RECONNECT_DELAY
      The maximum reconnect delay
    • PROTOCOL

      public static final MemcachedConfigurations PROTOCOL
      The protocol type ConnectionFactoryBuilder.Protocol
    • LOCATOR

      public static final MemcachedConfigurations LOCATOR
      The locator type ConnectionFactoryBuilder.Locator
    • AUTH_WAIT_TIME

      public static final MemcachedConfigurations AUTH_WAIT_TIME
      Custom wait time for the authentication on connect/reconnect.
    • MAX_BLOCK_TIME

      public static final MemcachedConfigurations MAX_BLOCK_TIME
      The maximum amount of time (in milliseconds) a client is willing to wait for space to become available in an output queue.
    • TIMEOUT

      public static final MemcachedConfigurations TIMEOUT
      The default operation timeout in milliseconds.
    • READ_BUFFER_SIZE

      public static final MemcachedConfigurations READ_BUFFER_SIZE
      The read buffer size.
    • SHOULD_OPTIMIZE

      public static final MemcachedConfigurations SHOULD_OPTIMIZE
      The default operation optimization is not desirable.
    • TIMEOUT_THRESHOLD

      public static final MemcachedConfigurations TIMEOUT_THRESHOLD
      The maximum timeout exception threshold.
    • USE_NAGLE_ALGORITHM

      public static final MemcachedConfigurations USE_NAGLE_ALGORITHM
      Enable the Nagle algorithm.
    • USER

      public static final MemcachedConfigurations USER
      The user's credential
    • PASSWORD

      public static final MemcachedConfigurations PASSWORD
      The password's credential.
    • HOST

      public static final MemcachedConfigurations HOST
      Database's host. It is a prefix to enumerate hosts. E.g.: jnosql.memcached.host.1=localhost:11211
  • Method Details

    • values

      public static MemcachedConfigurations[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MemcachedConfigurations valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public String get()
      Specified by:
      get in interface Supplier<String>