public class ArrayMemcachedSessionLocator extends AbstractMemcachedSessionLocator
failureMode
Constructor and Description |
---|
ArrayMemcachedSessionLocator() |
ArrayMemcachedSessionLocator(HashAlgorithm hashAlgorighm) |
Modifier and Type | Method and Description |
---|---|
long |
getHash(int size,
String key) |
long |
getNext(int size,
long start) |
Session |
getSessionByKey(String key)
Returns a session by special key.
|
void |
setHashAlgorighm(HashAlgorithm hashAlgorighm) |
void |
updateSessions(Collection<Session> list)
Update sessions when session was added or removed.
|
setFailureMode
public ArrayMemcachedSessionLocator()
public ArrayMemcachedSessionLocator(HashAlgorithm hashAlgorighm)
public final void setHashAlgorighm(HashAlgorithm hashAlgorighm)
public final long getHash(int size, String key)
public final Session getSessionByKey(String key)
MemcachedSessionLocator
public final long getNext(int size, long start)
public final void updateSessions(Collection<Session> list)
MemcachedSessionLocator
list
- The newer sessionsCopyright © 2021. All rights reserved.