org.openstreetmap.osmosis.core.task.v0_6
Interface MultiSink

All Known Subinterfaces:
MultiSinkMultiChangeSinkRunnableSource, MultiSinkRunnableChangeSource, MultiSinkRunnableSource
All Known Implementing Classes:
ChangeApplier, ChangeDeriver, EntityMerger

public interface MultiSink

Defines the interface for tasks consuming multiple streams of data. It allows a task to expose multiple sinks. Classes may choose to combine this with other multi sink style interfaces where data streams of different types are to be consumed.

Author:
Brett Henderson

Method Summary
 Sink getSink(int instance)
          Obtains one of the sinks exposed by the task.
 int getSinkCount()
          Returns the number of sinks provided by this task.
 

Method Detail

getSink

Sink getSink(int instance)
Obtains one of the sinks exposed by the task.

Parameters:
instance - The index of the sink to be returned.
Returns:
The sink.

getSinkCount

int getSinkCount()
Returns the number of sinks provided by this task.

Returns:
The number of sinks.