Example usage for com.amazonaws.services.dynamodbv2.document.internal IteratorSupport next

List of usage examples for com.amazonaws.services.dynamodbv2.document.internal IteratorSupport next

Introduction

In this page you can find the example usage for com.amazonaws.services.dynamodbv2.document.internal IteratorSupport next.

Prototype

@Override
    public T next() 

Source Link

Usage

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");
    }
}