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

com.emc.mongoose.api.common.supply.BatchSupplier Maven / Gradle / Ivy

There is a newer version: 4.0.0-alpha5
Show newest version
package com.emc.mongoose.api.common.supply;

import java.io.Closeable;
import java.util.List;
import java.util.function.Supplier;

/**
 Created by kurila on 07.03.17.
 */
public interface BatchSupplier
extends Supplier, Closeable {
	
	int get(final List buffer, final int limit);
	
	/**
	 * Skip some items.
	 * @param count count of items should be skipped from the input stream
	 */
	long skip(final long count);
	
	/**
	 Reset this input making this readable from the beginning
	 */
	void reset();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy