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

net.fortytwo.flow.Source Maven / Gradle / Ivy

There is a newer version: 1.5
Show newest version
package net.fortytwo.flow;

import net.fortytwo.ripple.RippleException;

/**
 * A push-based data source which passes data to a downstream sink
 * @param  the type of data being passed
 *
 * @author Joshua Shinavier (http://fortytwo.net)
 */
public interface Source
{
    /**
     * Pushes this source's data into a given sink
     * @param sink the downstream sink to receive the data in this source
     * @throws RippleException if a data handling error occurs
     */
	void writeTo( Sink sink ) throws RippleException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy