Class BaseMemcachedProperties
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MemcachedMonitorProperties
,MemcachedTicketRegistryProperties
BaseMemcachedProperties
.- Since:
- 5.0.0
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Failure mode.Deprecated.Hash algorithm.Deprecated.Locator mode.int
Deprecated.Set the value for the maxTotal configuration attribute for pools created with this configuration instance.long
Deprecated.Set the maximum reconnect delay.int
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.int
Deprecated.Get the value for the minIdle configuration attribute for pools created with this configuration instance.long
Deprecated.Set the default operation timeout in milliseconds.Deprecated.Protocol.Deprecated.Comma-separated list of memcached servers.long
Deprecated.The number of seconds to wait for connections to finish before shutting down the client.int
Deprecated.Set the maximum timeout exception threshold.Deprecated.Indicate the transcoder type.int
Deprecated.For transcoders other than kryo, determines the compression threshold.boolean
isDaemon()
Deprecated.Set the daemon state of the IO thread (defaults to true).boolean
Deprecated.If true,reset
is called automatically after an entire object graph has been read or written.boolean
Deprecated.If true, each appearance of an object in the graph after the first is stored as an integer ordinal.boolean
Deprecated.If true, an exception is thrown when an unregistered class is encountered.boolean
Deprecated.Set to false if the default operation optimization is not desirable.boolean
Deprecated.Set to true if you'd like to enable the Nagle algorithm.setDaemon
(boolean daemon) Deprecated.Set the daemon state of the IO thread (defaults to true).setFailureMode
(String failureMode) Deprecated.Failure mode.setHashAlgorithm
(String hashAlgorithm) Deprecated.Hash algorithm.setKryoAutoReset
(boolean kryoAutoReset) Deprecated.If true,reset
is called automatically after an entire object graph has been read or written.setKryoObjectsByReference
(boolean kryoObjectsByReference) Deprecated.If true, each appearance of an object in the graph after the first is stored as an integer ordinal.setKryoRegistrationRequired
(boolean kryoRegistrationRequired) Deprecated.If true, an exception is thrown when an unregistered class is encountered.setLocatorType
(String locatorType) Deprecated.Locator mode.setMaxIdle
(int maxIdle) Deprecated.Set the value for the maxTotal configuration attribute for pools created with this configuration instance.setMaxReconnectDelay
(long maxReconnectDelay) Deprecated.Set the maximum reconnect delay.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.setMinIdle
(int minIdle) Deprecated.Get the value for the minIdle configuration attribute for pools created with this configuration instance.setOpTimeout
(long opTimeout) Deprecated.Set the default operation timeout in milliseconds.setProtocol
(String protocol) Deprecated.Protocol.setServers
(String servers) Deprecated.Comma-separated list of memcached servers.setShouldOptimize
(boolean shouldOptimize) Deprecated.Set to false if the default operation optimization is not desirable.setShutdownTimeoutSeconds
(long shutdownTimeoutSeconds) Deprecated.The number of seconds to wait for connections to finish before shutting down the client.setTimeoutExceptionThreshold
(int timeoutExceptionThreshold) Deprecated.Set the maximum timeout exception threshold.setTranscoder
(BaseMemcachedProperties.TranscoderTypes transcoder) Deprecated.Indicate the transcoder type.setTranscoderCompressionThreshold
(int transcoderCompressionThreshold) Deprecated.For transcoders other than kryo, determines the compression threshold.setUseNagleAlgorithm
(boolean useNagleAlgorithm) Deprecated.Set to true if you'd like to enable the Nagle algorithm.
-
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
Deprecated.Comma-separated list of memcached servers. -
getFailureMode
Deprecated.Failure mode. Acceptable values areRedistribute,Retry,Cancel
. -
getLocatorType
Deprecated.Locator mode. Acceptable values areARRAY_MOD, CONSISTENT, VBUCKET
. -
getHashAlgorithm
Deprecated.Hash algorithm. Acceptable values areNATIVE_HASH,CRC_HASH,FNV1_64_HASH,FNV1A_64_HASH,FNV1_32_HASH,FNV1A_32_HASH,KETAMA_HASH
. -
getProtocol
Deprecated.Protocol. Acceptable values areTEXT, 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
Deprecated.Set to false if the default operation optimization is not desirable.- Returns:
this
.
-
setDaemon
Deprecated.Set the daemon state of the IO thread (defaults to true).- Returns:
this
.
-
setMaxReconnectDelay
Deprecated.Set the maximum reconnect delay.- Returns:
this
.
-
setUseNagleAlgorithm
Deprecated.Set to true if you'd like to enable the Nagle algorithm.- Returns:
this
.
-
setShutdownTimeoutSeconds
Deprecated.The number of seconds to wait for connections to finish before shutting down the client.- Returns:
this
.
-
setTimeoutExceptionThreshold
Deprecated.Set the maximum timeout exception threshold.- Returns:
this
.
-
setOpTimeout
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
Deprecated.Comma-separated list of memcached servers.- Returns:
this
.
-
setFailureMode
Deprecated.Failure mode. Acceptable values areRedistribute,Retry,Cancel
.- Returns:
this
.
-
setLocatorType
Deprecated.Locator mode. Acceptable values areARRAY_MOD, CONSISTENT, VBUCKET
.- Returns:
this
.
-
setHashAlgorithm
Deprecated.Hash algorithm. Acceptable values areNATIVE_HASH,CRC_HASH,FNV1_64_HASH,FNV1A_64_HASH,FNV1_32_HASH,FNV1A_32_HASH,KETAMA_HASH
.- Returns:
this
.
-
setProtocol
Deprecated.Protocol. Acceptable values areTEXT, BINARY
.- Returns:
this
.
-
setMaxTotal
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
Deprecated.Set the value for the maxTotal configuration attribute for pools created with this configuration instance.- Returns:
this
.
-
setMinIdle
Deprecated.Get the value for the minIdle configuration attribute for pools created with this configuration instance.- Returns:
this
.
-
setKryoAutoReset
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
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
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
.
-