Uses of Interface
net.rubyeye.xmemcached.MemcachedSessionLocator
-
Packages that use MemcachedSessionLocator Package Description net.rubyeye.xmemcached XMemcached's main classes and interfaces,use these classes/interfaces to interact with memcached servers.net.rubyeye.xmemcached.aws net.rubyeye.xmemcached.impl Manage tcp connection,memcached protocol optimized,and some MBeans for monitor.net.rubyeye.xmemcached.networking Networking layout to talk with memcached. -
-
Uses of MemcachedSessionLocator in net.rubyeye.xmemcached
Fields in net.rubyeye.xmemcached declared as MemcachedSessionLocator Modifier and Type Field Description protected MemcachedSessionLocatorXMemcachedClient. sessionLocatorprotected MemcachedSessionLocatorXMemcachedClientBuilder. sessionLocatorMethods in net.rubyeye.xmemcached that return MemcachedSessionLocator Modifier and Type Method Description MemcachedSessionLocatorMemcachedClientBuilder. getSessionLocator()MemcachedSessionLocatorXMemcachedClient. getSessionLocator()MemcachedSessionLocatorXMemcachedClientBuilder. getSessionLocator()Methods in net.rubyeye.xmemcached with parameters of type MemcachedSessionLocator Modifier and Type Method Description private voidXMemcachedClient. buildConnector(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator bufferAllocator, Configuration configuration, java.util.Map<SocketOption,java.lang.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 MemcachedSessionLocator Constructor Description XMemcachedClient(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, Configuration conf, java.util.Map<SocketOption,java.lang.Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder, java.util.Map<java.net.InetSocketAddress,java.net.InetSocketAddress> addressMap, int[] weights, java.util.List<MemcachedClientStateListener> stateListeners, java.util.Map<java.net.InetSocketAddress,AuthInfo> infoMap, int poolSize, long connectTimeout, java.lang.String name, boolean failureMode, boolean resolveInetAddresses)XMemcachedClient constructor.XMemcachedClient(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, Configuration conf, java.util.Map<SocketOption,java.lang.Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder, java.util.Map<java.net.InetSocketAddress,java.net.InetSocketAddress> addressMap, java.util.List<MemcachedClientStateListener> stateListeners, java.util.Map<java.net.InetSocketAddress,AuthInfo> map, int poolSize, long connectTimeout, java.lang.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 MemcachedSessionLocator Constructor Description AWSElasticCacheClient(MemcachedSessionLocator locator, MemcachedSessionComparator comparator, BufferAllocator allocator, Configuration conf, java.util.Map<SocketOption,java.lang.Object> socketOptions, CommandFactory commandFactory, Transcoder transcoder, java.util.List<MemcachedClientStateListener> stateListeners, java.util.Map<java.net.InetSocketAddress,AuthInfo> map, int poolSize, long connectTimeout, java.lang.String name, boolean failureMode, boolean resolveInetAddresses, java.util.List<java.net.InetSocketAddress> configAddrs, long pollConfigIntervalMills) -
Uses of MemcachedSessionLocator in net.rubyeye.xmemcached.impl
Classes in net.rubyeye.xmemcached.impl that implement MemcachedSessionLocator Modifier and Type Class Description classAbstractMemcachedSessionLocatorAbstract session locatorclassArrayMemcachedSessionLocatorSession locator base on hash(key) mod sessions.size().Standard hash strategyclassElectionMemcachedSessionLocatorElection hash strategyclassKetamaMemcachedSessionLocatorConsistent Hash Algorithm implementation,based on TreeMap.tailMap(hash) method.classLibmemcachedMemcachedSessionLocatorConsistent Hash Algorithm implementation is compatible with libmemcached method.classPHPMemcacheSessionLocatorSession locator base on hash(key) mod sessions.size().classRandomMemcachedSessionLocaltorA random session locator,it can be used in kestrel.classRoundRobinMemcachedSessionLocatorA 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 MemcachedSessionLocator Modifier and Type Field Description protected MemcachedSessionLocatorMemcachedConnector. sessionLocatorMethods in net.rubyeye.xmemcached.impl with parameters of type MemcachedSessionLocator Modifier and Type Method Description voidMemcachedConnector. setSessionLocator(MemcachedSessionLocator sessionLocator)Constructors in net.rubyeye.xmemcached.impl with parameters of type MemcachedSessionLocator Constructor Description MemcachedConnector(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 MemcachedSessionLocator Modifier and Type Method Description voidConnector. setSessionLocator(MemcachedSessionLocator sessionLocator)
-