Package net.rubyeye.xmemcached.impl
Class ElectionMemcachedSessionLocator
java.lang.Object
net.rubyeye.xmemcached.impl.AbstractMemcachedSessionLocator
net.rubyeye.xmemcached.impl.ElectionMemcachedSessionLocator
- All Implemented Interfaces:
MemcachedSessionLocator
Election hash strategy
-
Field Summary
FieldsFields inherited from class net.rubyeye.xmemcached.impl.AbstractMemcachedSessionLocator
failureMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SessiongetSessionByElection(String key, List<Session> copySessionList) getSessionByKey(String key) Returns a session by special key.voidupdateSessions(Collection<Session> list) Update sessions when session was added or removed.Methods inherited from class net.rubyeye.xmemcached.impl.AbstractMemcachedSessionLocator
setFailureMode
-
Field Details
-
sessions
-
hashAlgorithm
-
-
Constructor Details
-
ElectionMemcachedSessionLocator
public ElectionMemcachedSessionLocator() -
ElectionMemcachedSessionLocator
-
-
Method Details
-
getSessionByKey
Description copied from interface:MemcachedSessionLocatorReturns a session by special key.- Parameters:
key-- Returns:
-
getSessionByElection
-
updateSessions
Description copied from interface:MemcachedSessionLocatorUpdate sessions when session was added or removed.- Parameters:
list- The newer sessions
-