biz.hammurapi.dataflow
Interface DataSink

All Known Subinterfaces:
DataPipe
All Known Implementing Classes:
DataPump.DataSinkProxy, DataTypeMatcher, JavaMethodDataPipe, Multiplexor

public interface DataSink

Data sinks consume data.

Author:
Pavel

Method Summary
 boolean addData(Data data)
          Adds data to the sink.
 boolean controlsMultiplexing()
           
 DataItemInfo[] getDataInfo()
           
 

Method Detail

controlsMultiplexing

boolean controlsMultiplexing()
Returns:
true if this sink controls multiplexing to "sibling" sinks, i.e. if addData() can return true.

getDataInfo

DataItemInfo[] getDataInfo()
Returns:
Information about data items expected/required by the sink.

addData

boolean addData(Data data)
Adds data to the sink.

Parameters:
data -
Returns:
true if data was "consumed" and shall be removed from further processing. If this sink is attached to a multiplexor, then the multiplexor shall not continue adding given data to "sibling" sinks.


Copyright © 2005 Hammurapi Group. All Rights Reserved.