Class MultiWriter.RoundRobinWriteStrategy
java.lang.Object
com.northconcepts.datapipeline.core.MultiWriter.WriteStrategy
com.northconcepts.datapipeline.core.MultiWriter.RoundRobinWriteStrategy
- Enclosing class:
MultiWriter
Divides records evenly between all writers by cycling through the list
and writing each record to a single writer in turn.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwrite(Record record, List<DataWriter> list) Writes the record to one or more of the target writers; the list is never empty.
-
Constructor Details
-
RoundRobinWriteStrategy
public RoundRobinWriteStrategy()
-
-
Method Details
-
write
Description copied from class:MultiWriter.WriteStrategyWrites the record to one or more of the target writers; the list is never empty.- Specified by:
writein classMultiWriter.WriteStrategy- Throws:
Throwable
-