Class MultiWriter.AvailableCapacityWriteStrategy
java.lang.Object
com.northconcepts.datapipeline.core.MultiWriter.WriteStrategy
com.northconcepts.datapipeline.core.MultiWriter.AvailableCapacityWriteStrategy
- Enclosing class:
MultiWriter
Writes each record to a single writer by choosing the one with the
highest available capacity (
DataWriter.available() If all writers
have identical capacities, this strategy behaves like
MultiWriter.RoundRobinWriteStrategy and writes to each 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
-
AvailableCapacityWriteStrategy
public AvailableCapacityWriteStrategy()
-
-
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
-