org.openstreetmap.osmosis.core.task.v0_5
Interface MultiChangeSink

All Known Subinterfaces:
MultiChangeSinkRunnableChangeSource, MultiSinkMultiChangeSinkRunnableSource
All Known Implementing Classes:
ChangeApplier, ChangeMerger

public interface MultiChangeSink

Defines the interface for tasks consuming multiple streams of data. It allows a task to expose multiple change 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
 ChangeSink getChangeSink(int instance)
          Obtains one of the change sinks exposed by the task.
 int getChangeSinkCount()
          Returns the number of change sinks provided by this task.
 

Method Detail

getChangeSink

ChangeSink getChangeSink(int instance)
Obtains one of the change sinks exposed by the task.

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

getChangeSinkCount

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

Returns:
The number of change sinks.