public final class KeyIteratorImpl extends Object implements KeyIterator
| 构造器和说明 |
|---|
KeyIteratorImpl(LinkedList<Integer> itemNumbersList,
MemcachedClient memcachedClient,
InetSocketAddress inetSocketAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
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()
Get current iterator's memcached server address
|
boolean |
hasNext()
Check if the iterator has more keys.
|
String |
next()
Get next key,if iterator has reached the end,throw
ArrayIndexOutOfBoundsException
|
void |
setOpTimeout(long opTimeout)
Set operation timeout,default is 1000 MILLISECONDS.
|
public KeyIteratorImpl(LinkedList<Integer> itemNumbersList, MemcachedClient memcachedClient, InetSocketAddress inetSocketAddress)
public final InetSocketAddress getServerAddress()
KeyIteratorgetServerAddress 在接口中 KeyIteratorpublic final void setOpTimeout(long opTimeout)
KeyIteratorsetOpTimeout 在接口中 KeyIteratorpublic void close()
KeyIteratorclose 在接口中 KeyIteratorpublic boolean hasNext()
KeyIteratorhasNext 在接口中 KeyIteratorpublic String next() throws MemcachedException, TimeoutException, InterruptedException
KeyIteratornext 在接口中 KeyIteratorMemcachedExceptionTimeoutExceptionInterruptedExceptionCopyright © 2013. All Rights Reserved.