All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nimbusds.infinispan.persistence.dynamodb.PageOfItems Maven / Gradle / Ivy

The newest version!
package com.nimbusds.infinispan.persistence.dynamodb;

import com.amazonaws.services.dynamodbv2.document.Item;
import com.amazonaws.services.dynamodbv2.model.ConsumedCapacity;
import net.jcip.annotations.Immutable;

import java.util.Iterator;


/**
 * Page of DynamoDB items.
 */
@Immutable
record PageOfItems(Iterator itemIterator,
                   ConsumedCapacity consumedCapacity) {


        /**
         * Creates a new page of DynamoDB items.
         *
         * @param itemIterator     The item iterator.
         * @param consumedCapacity The consumed capacity.
         */
        PageOfItems(final Iterator itemIterator, final ConsumedCapacity consumedCapacity) {
                assert itemIterator != null;
                this.itemIterator = itemIterator;
                assert consumedCapacity != null;
                this.consumedCapacity = consumedCapacity;
        }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy