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

org.infinispan.iteration.EntryIterable Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.iteration;

import org.infinispan.commons.util.CloseableIterable;
import org.infinispan.container.entries.CacheEntry;
import org.infinispan.filter.Converter;

import java.util.Map;

/**
 * A {@link java.lang.Iterable} instance that allows the user to iterate over the entries in the cache.  This
 * also implements {@link java.io.Closeable} of which the {@link java.io.Closeable#close()} should be invoked
 * when iteration of all needed Iterables is complete.
 *
 * @author wburns
 * @since 7.0
 */
public interface EntryIterable extends CloseableIterable> {
   /**
    * This returns a {@link org.infinispan.commons.util.CloseableIterable} that will change the type of the returned
    * value for the entry using the already provided filter in addition to the converter.
    * @param converter The converter to apply to the iterator that is produced.  Callbacks to to this converter will
    *                  never provide a key or value that is null.
    * @param  The type of the converted value
    * @return A CloseableIterator that will use the given converter
    */
   public  CloseableIterable> converter(Converter converter);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy