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

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

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

import net.fortytwo.ripple.RippleException;

/**
 * The next step in a data pipeline.
 * Data items which are passed into a Sink may be transformed or passed along verbatim
 * to downstream components, or even thrown away;
 * a Sink is a black box with respect to upstream components passing data into it.
 *
 * @param  the type of data being passed
 *
 * @author Joshua Shinavier (http://fortytwo.net)
 */
public interface Sink
{
    /**
     * Passes a data item into the Sink
     * @param t the data item being passed
     * @throws RippleException if a data handling error occors
     */
	void put( T t ) throws RippleException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy