@Deprecated public interface KeyIterator
Note: memcached 1.6.x will remove cachedump stats,so this feature will be invalid in memcached 1.6.x
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Close this iterator when you don't need it any more.It is not mandatory to call this method,
but you might want to invoke this method for maximum performance.
|
InetSocketAddress |
getServerAddress()
Deprecated.
Get current iterator's memcached server address
|
boolean |
hasNext()
Deprecated.
Check if the iterator has more keys.
|
String |
next()
Deprecated.
Get next key,if iterator has reached the end,throw ArrayIndexOutOfBoundsException
|
void |
setOpTimeout(long opTimeout)
Deprecated.
Set operation timeout,default is 1000 MILLISECONDS.
|
String next() throws MemcachedException, TimeoutException, InterruptedException
ArrayIndexOutOfBoundsException
- ,MemcachedException,TimeoutException,InterruptedExceptionMemcachedException
TimeoutException
InterruptedException
boolean hasNext()
void close()
InetSocketAddress getServerAddress()
void setOpTimeout(long opTimeout)
opTimeout
- Copyright © 2021. All rights reserved.