Uses of Interface
net.rubyeye.xmemcached.MemcachedSessionLocator
Packages that use MemcachedSessionLocator
Package
Description
XMemcached's main classes and interfaces,use these classes/interfaces to interact with memcached servers.
Manage tcp connection,memcached protocol optimized,and some MBeans for monitor.
Networking layout to talk with memcached.
-
Uses of MemcachedSessionLocator in net.rubyeye.xmemcached
Fields in net.rubyeye.xmemcached declared as MemcachedSessionLocatorModifier and TypeFieldDescriptionprotected MemcachedSessionLocator
XMemcachedClient.sessionLocator
protected MemcachedSessionLocator
XMemcachedClientBuilder.sessionLocator
Methods in net.rubyeye.xmemcached that return MemcachedSessionLocatorModifier and TypeMethodDescriptionMemcachedClientBuilder.getSessionLocator()
final MemcachedSessionLocator
XMemcachedClient.getSessionLocator()
XMemcachedClientBuilder.getSessionLocator()
Methods in net.rubyeye.xmemcached with parameters of type MemcachedSessionLocatorModifier and TypeMethodDescriptionprivate void
XMemcachedClient.buildConnector
(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator bufferAllocator, Configuration configuration, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder) protected MemcachedConnector
XMemcachedClient.newConnector
(BufferAllocator bufferAllocator, Configuration configuration, MemcachedSessionLocator memcachedSessionLocator, MemcachedSessionComparator memcachedSessionComparator, CommandFactory commandFactory, int poolSize, int maxQueuedNoReplyOperations) void
MemcachedClientBuilder.setSessionLocator
(MemcachedSessionLocator sessionLocator) Set the XmemcachedClient's session locator.Use ArrayMemcachedSessionLocator by default.If you want to choose consistent hash strategy,set it to KetamaMemcachedSessionLocatorvoid
XMemcachedClientBuilder.setSessionLocator
(MemcachedSessionLocator sessionLocator) Constructors in net.rubyeye.xmemcached with parameters of type MemcachedSessionLocatorModifierConstructorDescription(package private)
XMemcachedClient
(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, Configuration conf, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder, Map<InetSocketAddress, InetSocketAddress> addressMap, int[] weights, List<MemcachedClientStateListener> stateListeners, Map<InetSocketAddress, AuthInfo> infoMap, int poolSize, long connectTimeout, String name, boolean failureMode, boolean resolveInetAddresses) XMemcachedClient constructor.XMemcachedClient
(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, Configuration conf, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder, Map<InetSocketAddress, InetSocketAddress> addressMap, List<MemcachedClientStateListener> stateListeners, Map<InetSocketAddress, AuthInfo> map, int poolSize, long connectTimeout, String name, boolean failureMode, boolean resolveInetAddresses) XMemcachedClient constructor.Every server's weight is one by default. -
Uses of MemcachedSessionLocator in net.rubyeye.xmemcached.aws
Constructors in net.rubyeye.xmemcached.aws with parameters of type MemcachedSessionLocatorModifierConstructorDescription(package private)
AWSElasticCacheClient
(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, Configuration conf, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder, List<MemcachedClientStateListener> stateListeners, Map<InetSocketAddress, AuthInfo> map, int poolSize, long connectTimeout, String name, boolean failureMode, boolean resolveInetAddresses, List<InetSocketAddress> configAddrs, long pollConfigIntervalMills) -
Uses of MemcachedSessionLocator in net.rubyeye.xmemcached.impl
Classes in net.rubyeye.xmemcached.impl that implement MemcachedSessionLocatorModifier and TypeClassDescriptionclass
Abstract session locatorclass
Session locator base on hash(key) mod sessions.size().Standard hash strategyclass
Election hash strategyclass
Consistent Hash Algorithm implementation,based on TreeMap.tailMap(hash) method.class
Consistent Hash Algorithm implementation is compatible with libmemcached method.class
Session locator base on hash(key) mod sessions.size().class
A random session locator,it can be used in kestrel.class
A round-robin session locator for some special applications,memcacheq or kestrel etc.They doesn't need the same key must always to be stored in same memcached but want to make a cluster.Fields in net.rubyeye.xmemcached.impl declared as MemcachedSessionLocatorModifier and TypeFieldDescriptionprotected MemcachedSessionLocator
MemcachedConnector.sessionLocator
Methods in net.rubyeye.xmemcached.impl with parameters of type MemcachedSessionLocatorModifier and TypeMethodDescriptionvoid
MemcachedConnector.setSessionLocator
(MemcachedSessionLocator sessionLocator) Constructors in net.rubyeye.xmemcached.impl with parameters of type MemcachedSessionLocatorModifierConstructorDescriptionMemcachedConnector
(Configuration configuration, MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, CommandFactory commandFactory, int poolSize, int maxQueuedNoReplyOperations) -
Uses of MemcachedSessionLocator in net.rubyeye.xmemcached.networking
Methods in net.rubyeye.xmemcached.networking with parameters of type MemcachedSessionLocatorModifier and TypeMethodDescriptionvoid
Connector.setSessionLocator
(MemcachedSessionLocator sessionLocator)