public abstract class DataProcessor<IN,OUT> extends Object implements IDataProcessor<IN,OUT>
Void| Modifier and Type | Method and Description |
|---|---|
DataProcessor<IN,OUT> |
add(IDataProcessor<OUT,?> destination)
Connect another data processor to this data processor.
|
IDataProcessor<IN,OUT> |
connectTo(IDataProcessor<OUT,?>... consumer)
Connect multiple other data processor to this data processor.
|
<V> IDataProcessor<OUT,V> |
connectTo(IDataProcessor<OUT,V> consumer)
Connect another data processor to this data processor.
|
void |
receive(IN value)
Convenience method to receive new values
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreceivepublic <V> IDataProcessor<OUT,V> connectTo(IDataProcessor<OUT,V> consumer)
IDataProcessorconnectTo in interface IDataProcessor<IN,OUT>V - - The type of value that the added processor outputs. Used to build pipelines
of data processors in a type-safe mannerconsumer - - The data processor to be added to the list of receiverspublic IDataProcessor<IN,OUT> connectTo(IDataProcessor<OUT,?>... consumer)
IDataProcessorconnectTo in interface IDataProcessor<IN,OUT>consumer - - The data processors to be added to the list of receiverspublic DataProcessor<IN,OUT> add(IDataProcessor<OUT,?> destination)
IDataProcessoradd in interface IDataProcessor<IN,OUT>destination - - The data processor to be added to the list of receiverspublic void receive(IN value)
IDataProcessorreceive in interface IDataProcessor<IN,OUT>Copyright © 2016. All rights reserved.