List of usage examples for com.amazonaws.services.dynamodbv2.document.internal IteratorSupport next
@Override
public T next()
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(); DYNAMO_DB_TABLE.deleteItem("id", item.get("id")); }/*from w ww. ja v a2s . com*/ if (LOGGER.isDebugEnabled()) { LOGGER.debug("Global cache has been cleared"); } }