
org.dihedron.patterns.experimental.pipeline.Producer Maven / Gradle / Ivy
/**
* Copyright (c) 2012-2014, Andrea Funto'. All rights reserved. See LICENSE for details.
*/
package org.dihedron.patterns.experimental.pipeline;
import org.dihedron.core.License;
/**
* @author Andrea Funto'
*/
@License
public interface Producer {
/**
* Returns whether there is more data available in the source.
*
* @return
* whether there is more data available in the source.
* @throws PipelineException
*/
boolean hasMore() throws PipelineException;
/**
* Starts producing elements for consumption by the following consumers.
*
* @return
* the result of the processing.
*/
T produce() throws PipelineException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy