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