Class BaseMemcachedProperties

java.lang.Object
org.apereo.cas.configuration.model.support.memcached.BaseMemcachedProperties
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MemcachedMonitorProperties, MemcachedTicketRegistryProperties

@RequiresModule(name="cas-server-support-memcached-core") @Deprecated(since="7.0.0") public class BaseMemcachedProperties extends Object implements Serializable
Deprecated.
Since 7.0.0
Since:
5.0.0
See Also:
  • Constructor Details

    • BaseMemcachedProperties

      public BaseMemcachedProperties()
      Deprecated.
  • Method Details

    • isShouldOptimize

      public boolean isShouldOptimize()
      Deprecated.
      Set to false if the default operation optimization is not desirable.
    • isDaemon

      public boolean isDaemon()
      Deprecated.
      Set the daemon state of the IO thread (defaults to true).
    • getMaxReconnectDelay

      public long getMaxReconnectDelay()
      Deprecated.
      Set the maximum reconnect delay.
    • isUseNagleAlgorithm

      public boolean isUseNagleAlgorithm()
      Deprecated.
      Set to true if you'd like to enable the Nagle algorithm.
    • getShutdownTimeoutSeconds

      public long getShutdownTimeoutSeconds()
      Deprecated.
      The number of seconds to wait for connections to finish before shutting down the client.
    • getTimeoutExceptionThreshold

      public int getTimeoutExceptionThreshold()
      Deprecated.
      Set the maximum timeout exception threshold.
    • getOpTimeout

      public long getOpTimeout()
      Deprecated.
      Set the default operation timeout in milliseconds.
    • getTranscoder

      Deprecated.
      Indicate the transcoder type.
    • getTranscoderCompressionThreshold

      public int getTranscoderCompressionThreshold()
      Deprecated.
      For transcoders other than kryo, determines the compression threshold. Does not apply to kryo.
    • getServers

      public String getServers()
      Deprecated.
      Comma-separated list of memcached servers.
    • getFailureMode

      public String getFailureMode()
      Deprecated.
      Failure mode. Acceptable values are Redistribute,Retry,Cancel.
    • getLocatorType

      public String getLocatorType()
      Deprecated.
      Locator mode. Acceptable values are ARRAY_MOD, CONSISTENT, VBUCKET.
    • getHashAlgorithm

      public String getHashAlgorithm()
      Deprecated.
      Hash algorithm. Acceptable values are NATIVE_HASH,CRC_HASH,FNV1_64_HASH,FNV1A_64_HASH,FNV1_32_HASH,FNV1A_32_HASH,KETAMA_HASH.
    • getProtocol

      public String getProtocol()
      Deprecated.
      Protocol. Acceptable values are TEXT, BINARY.
    • getMaxTotal

      public int getMaxTotal()
      Deprecated.
      Sets the cap on the number of objects that can be allocated by the pool (checked out to clients, or idle awaiting checkout) at a given time. Use a negative value for no limit.
    • getMaxIdle

      public int getMaxIdle()
      Deprecated.
      Set the value for the maxTotal configuration attribute for pools created with this configuration instance.
    • getMinIdle

      public int getMinIdle()
      Deprecated.
      Get the value for the minIdle configuration attribute for pools created with this configuration instance.
    • isKryoAutoReset

      public boolean isKryoAutoReset()
      Deprecated.
      If true, reset is called automatically after an entire object graph has been read or written. If false, reset must be called manually, which allows unregistered class names, references, and other information to span multiple object graphs.
    • isKryoObjectsByReference

      public boolean isKryoObjectsByReference()
      Deprecated.
      If true, each appearance of an object in the graph after the first is stored as an integer ordinal. When set to true, MapReferenceResolver is used. This enables references to the same object and cyclic graphs to be serialized, but typically adds overhead of one byte per object.
    • isKryoRegistrationRequired

      public boolean isKryoRegistrationRequired()
      Deprecated.
      If true, an exception is thrown when an unregistered class is encountered.

      If false, when an unregistered class is encountered, its fully qualified class name will be serialized and the default serializer for the class used to serialize the object. Subsequent appearances of the class within the same object graph are serialized as an int id. Registered classes are serialized as an int id, avoiding the overhead of serializing the class name, but have the drawback of needing to know the classes to be serialized up front. See ComponentSerializationPlan for help here.

    • setShouldOptimize

      public BaseMemcachedProperties setShouldOptimize(boolean shouldOptimize)
      Deprecated.
      Set to false if the default operation optimization is not desirable.
      Returns:
      this.
    • setDaemon

      public BaseMemcachedProperties setDaemon(boolean daemon)
      Deprecated.
      Set the daemon state of the IO thread (defaults to true).
      Returns:
      this.
    • setMaxReconnectDelay

      public BaseMemcachedProperties setMaxReconnectDelay(long maxReconnectDelay)
      Deprecated.
      Set the maximum reconnect delay.
      Returns:
      this.
    • setUseNagleAlgorithm

      public BaseMemcachedProperties setUseNagleAlgorithm(boolean useNagleAlgorithm)
      Deprecated.
      Set to true if you'd like to enable the Nagle algorithm.
      Returns:
      this.
    • setShutdownTimeoutSeconds

      public BaseMemcachedProperties setShutdownTimeoutSeconds(long shutdownTimeoutSeconds)
      Deprecated.
      The number of seconds to wait for connections to finish before shutting down the client.
      Returns:
      this.
    • setTimeoutExceptionThreshold

      public BaseMemcachedProperties setTimeoutExceptionThreshold(int timeoutExceptionThreshold)
      Deprecated.
      Set the maximum timeout exception threshold.
      Returns:
      this.
    • setOpTimeout

      public BaseMemcachedProperties setOpTimeout(long opTimeout)
      Deprecated.
      Set the default operation timeout in milliseconds.
      Returns:
      this.
    • setTranscoder

      Deprecated.
      Indicate the transcoder type.
      Returns:
      this.
    • setTranscoderCompressionThreshold

      public BaseMemcachedProperties setTranscoderCompressionThreshold(int transcoderCompressionThreshold)
      Deprecated.
      For transcoders other than kryo, determines the compression threshold. Does not apply to kryo.
      Returns:
      this.
    • setServers

      public BaseMemcachedProperties setServers(String servers)
      Deprecated.
      Comma-separated list of memcached servers.
      Returns:
      this.
    • setFailureMode

      public BaseMemcachedProperties setFailureMode(String failureMode)
      Deprecated.
      Failure mode. Acceptable values are Redistribute,Retry,Cancel.
      Returns:
      this.
    • setLocatorType

      public BaseMemcachedProperties setLocatorType(String locatorType)
      Deprecated.
      Locator mode. Acceptable values are ARRAY_MOD, CONSISTENT, VBUCKET.
      Returns:
      this.
    • setHashAlgorithm

      public BaseMemcachedProperties setHashAlgorithm(String hashAlgorithm)
      Deprecated.
      Hash algorithm. Acceptable values are NATIVE_HASH,CRC_HASH,FNV1_64_HASH,FNV1A_64_HASH,FNV1_32_HASH,FNV1A_32_HASH,KETAMA_HASH.
      Returns:
      this.
    • setProtocol

      public BaseMemcachedProperties setProtocol(String protocol)
      Deprecated.
      Protocol. Acceptable values are TEXT, BINARY.
      Returns:
      this.
    • setMaxTotal

      public BaseMemcachedProperties setMaxTotal(int maxTotal)
      Deprecated.
      Sets the cap on the number of objects that can be allocated by the pool (checked out to clients, or idle awaiting checkout) at a given time. Use a negative value for no limit.
      Returns:
      this.
    • setMaxIdle

      public BaseMemcachedProperties setMaxIdle(int maxIdle)
      Deprecated.
      Set the value for the maxTotal configuration attribute for pools created with this configuration instance.
      Returns:
      this.
    • setMinIdle

      public BaseMemcachedProperties setMinIdle(int minIdle)
      Deprecated.
      Get the value for the minIdle configuration attribute for pools created with this configuration instance.
      Returns:
      this.
    • setKryoAutoReset

      public BaseMemcachedProperties setKryoAutoReset(boolean kryoAutoReset)
      Deprecated.
      If true, reset is called automatically after an entire object graph has been read or written. If false, reset must be called manually, which allows unregistered class names, references, and other information to span multiple object graphs.
      Returns:
      this.
    • setKryoObjectsByReference

      public BaseMemcachedProperties setKryoObjectsByReference(boolean kryoObjectsByReference)
      Deprecated.
      If true, each appearance of an object in the graph after the first is stored as an integer ordinal. When set to true, MapReferenceResolver is used. This enables references to the same object and cyclic graphs to be serialized, but typically adds overhead of one byte per object.
      Returns:
      this.
    • setKryoRegistrationRequired

      public BaseMemcachedProperties setKryoRegistrationRequired(boolean kryoRegistrationRequired)
      Deprecated.
      If true, an exception is thrown when an unregistered class is encountered.

      If false, when an unregistered class is encountered, its fully qualified class name will be serialized and the default serializer for the class used to serialize the object. Subsequent appearances of the class within the same object graph are serialized as an int id. Registered classes are serialized as an int id, avoiding the overhead of serializing the class name, but have the drawback of needing to know the classes to be serialized up front. See ComponentSerializationPlan for help here.

      Returns:
      this.