public class ElectionMemcachedSessionLocator extends AbstractMemcachedSessionLocator
failureMode
Constructor and Description |
---|
ElectionMemcachedSessionLocator() |
ElectionMemcachedSessionLocator(HashAlgorithm hashAlgorithm) |
Modifier and Type | Method and Description |
---|---|
Session |
getSessionByKey(String key)
Returns a session by special key.
|
void |
updateSessions(Collection<Session> list)
Update sessions when session was added or removed.
|
setFailureMode
public ElectionMemcachedSessionLocator()
public ElectionMemcachedSessionLocator(HashAlgorithm hashAlgorithm)
public Session getSessionByKey(String key)
MemcachedSessionLocator
public void updateSessions(Collection<Session> list)
MemcachedSessionLocator
list
- The newer sessionsCopyright © 2021. All rights reserved.