Package net.rubyeye.xmemcached
Interface KeyIterator
-
- All Known Implementing Classes:
KeyIteratorImpl
@Deprecated public interface KeyIterator
Deprecated.memcached 1.6.x will remove cachedump stats command,so this feature will be removed in the futureKey Iterator for memcached,use 'stats items' and 'stats cachedump' to iterate all keys,it is inefficient and not thread-safe.The 'stats cachedump" has length limitation,then iterator could not visit all keys if you have many keys.Note: memcached 1.6.x will remove cachedump stats,so this feature will be invalid in memcached 1.6.x
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.java.net.InetSocketAddress
getServerAddress()
Deprecated.Get current iterator's memcached server addressboolean
hasNext()
Deprecated.Check if the iterator has more keys.java.lang.String
next()
Deprecated.Get next key,if iterator has reached the end,throw ArrayIndexOutOfBoundsExceptionvoid
setOpTimeout(long opTimeout)
Deprecated.Set operation timeout,default is 1000 MILLISECONDS.
-
-
-
Method Detail
-
next
java.lang.String next() throws MemcachedException, java.util.concurrent.TimeoutException, java.lang.InterruptedException
Deprecated.Get next key,if iterator has reached the end,throw ArrayIndexOutOfBoundsException- Returns:
- Throws:
java.lang.ArrayIndexOutOfBoundsException
- ,MemcachedException,TimeoutException,InterruptedExceptionMemcachedException
java.util.concurrent.TimeoutException
java.lang.InterruptedException
-
hasNext
boolean hasNext()
Deprecated.Check if the iterator has more keys.- Returns:
-
close
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.
-
getServerAddress
java.net.InetSocketAddress getServerAddress()
Deprecated.Get current iterator's memcached server address- Returns:
-
setOpTimeout
void setOpTimeout(long opTimeout)
Deprecated.Set operation timeout,default is 1000 MILLISECONDS.- Parameters:
opTimeout
-
-
-