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 MemcachedSessionLocatorXMemcachedClient.sessionLocatorprotected MemcachedSessionLocatorXMemcachedClientBuilder.sessionLocatorMethods in net.rubyeye.xmemcached that return MemcachedSessionLocatorModifier and TypeMethodDescriptionMemcachedClientBuilder.getSessionLocator()final MemcachedSessionLocatorXMemcachedClient.getSessionLocator()XMemcachedClientBuilder.getSessionLocator()Methods in net.rubyeye.xmemcached with parameters of type MemcachedSessionLocatorModifier and TypeMethodDescriptionprivate voidXMemcachedClient.buildConnector(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator bufferAllocator, Configuration configuration, Map<SocketOption, Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder) protected MemcachedConnectorXMemcachedClient.newConnector(BufferAllocator bufferAllocator, Configuration configuration, MemcachedSessionLocator memcachedSessionLocator, MemcachedSessionComparator memcachedSessionComparator, CommandFactory commandFactory, int poolSize, int maxQueuedNoReplyOperations) voidMemcachedClientBuilder.setSessionLocator(MemcachedSessionLocator sessionLocator) Set the XmemcachedClient's session locator.Use ArrayMemcachedSessionLocator by default.If you want to choose consistent hash strategy,set it to KetamaMemcachedSessionLocatorvoidXMemcachedClientBuilder.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 TypeClassDescriptionclassAbstract session locatorclassSession locator base on hash(key) mod sessions.size().Standard hash strategyclassElection hash strategyclassConsistent Hash Algorithm implementation,based on TreeMap.tailMap(hash) method.classConsistent Hash Algorithm implementation is compatible with libmemcached method.classSession locator base on hash(key) mod sessions.size().classA random session locator,it can be used in kestrel.classA 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 MemcachedSessionLocatorMemcachedConnector.sessionLocatorMethods in net.rubyeye.xmemcached.impl with parameters of type MemcachedSessionLocatorModifier and TypeMethodDescriptionvoidMemcachedConnector.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 TypeMethodDescriptionvoidConnector.setSessionLocator(MemcachedSessionLocator sessionLocator)