public class ArrayMemcachedSessionLocator extends AbstractMemcachedSessionLocator
failureMode| 构造器和说明 |
|---|
ArrayMemcachedSessionLocator() |
ArrayMemcachedSessionLocator(HashAlgorithm hashAlgorighm) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
setFailureModepublic 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)
MemcachedSessionLocatorpublic final long getNext(int size,
long start)
public final void updateSessions(Collection<Session> list)
MemcachedSessionLocatorlist - The newer sessionsCopyright © 2013. All Rights Reserved.