List of usage examples for com.amazonaws.services.dynamodbv2.document.internal IteratorSupport hasNext
@Override public boolean hasNext()
From source file:tr.com.serkanozal.samba.cache.impl.SambaGlobalCache.java
License:Open Source License
@Override public void clear() { ItemCollection<ScanOutcome> items = DYNAMO_DB_TABLE.scan(); IteratorSupport<Item, ScanOutcome> itemsIter = items.iterator(); while (itemsIter.hasNext()) { Item item = itemsIter.next();//w w w.j av a 2 s . com DYNAMO_DB_TABLE.deleteItem("id", item.get("id")); } if (LOGGER.isDebugEnabled()) { LOGGER.debug("Global cache has been cleared"); } }