Enum MemcachedClientMode

java.lang.Object
java.lang.Enum<MemcachedClientMode>
io.datarouter.aws.memcached.client.MemcachedClientMode
All Implemented Interfaces:
io.datarouter.enums.PersistentString, io.datarouter.enums.StringEnum<MemcachedClientMode>, Serializable, Comparable<MemcachedClientMode>, Constable

public enum MemcachedClientMode
extends Enum<MemcachedClientMode>
implements io.datarouter.enums.StringEnum<MemcachedClientMode>
Wrapper to not expose memcached client libraries to application code
  • Enum Constant Details

  • Method Details

    • values

      public static MemcachedClientMode[] 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 MemcachedClientMode 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
    • fromGenericClientMode

      public static MemcachedClientMode fromGenericClientMode​(io.datarouter.storage.config.client.MemcachedGenericClientOptions.MemcachedGenericClientMode genericMode)
    • getClientMode

      public net.spy.memcached.ClientMode getClientMode()
    • getPersistentString

      public String getPersistentString()
      Specified by:
      getPersistentString in interface io.datarouter.enums.PersistentString
    • fromPersistentString

      public MemcachedClientMode fromPersistentString​(String string)
      Specified by:
      fromPersistentString in interface io.datarouter.enums.StringEnum<MemcachedClientMode>
    • fromPersistentStringStatic

      public static Optional<MemcachedClientMode> fromPersistentStringStatic​(String string)