public class LibmemcachedMemcachedSessionLocator extends AbstractMemcachedSessionLocator
failureMode| 构造器和说明 |
|---|
LibmemcachedMemcachedSessionLocator() |
LibmemcachedMemcachedSessionLocator(int numReps,
HashAlgorithm hashAlgorithm) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
setFailureModepublic LibmemcachedMemcachedSessionLocator()
public LibmemcachedMemcachedSessionLocator(int numReps,
HashAlgorithm hashAlgorithm)
public final Session getSessionByKey(String key)
MemcachedSessionLocatorpublic final Session getSessionByHash(long hash)
public final long nextHash(long hashVal,
String key,
int tries)
public final void updateSessions(Collection<Session> list)
MemcachedSessionLocatorlist - The newer sessionsCopyright © 2013. All Rights Reserved.