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

org.infinispan.commons.util.CloseableIterable Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.util;

/**
 * Interface that provides semantics of a {@link Iterable} and {@link AutoCloseable} interfaces.  This is
 * useful when you have data that must be iterated on and may hold resources in the underlying implementation that
 * must be closed.
 * 

The close method will close any existing iterators that may be open to free resources

* * @author wburns * @since 7.0 */ public interface CloseableIterable extends AutoCloseable, Iterable { @Override void close(); @Override CloseableIterator iterator(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy