com.nimbusds.infinispan.persistence.dynamodb.PageOfItems Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-cachestore-dynamodb Show documentation
Show all versions of infinispan-cachestore-dynamodb Show documentation
Infinispan module for persisting data to an AWS DynamoDB table
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