Package nl.basjes.modbus.schema.fetcher
Class RegisterBlockFetcher.MergedFetchBatch
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class RegisterBlockFetcher.MergedFetchBatch extends RegisterBlockFetcher.FetchBatch
When doing fetch optimization we are sometimes combining the FetchBatches. This is the class to hold such a combination. This is needed to be able to handle the retry in case of a read error
-
-
Field Summary
Fields Modifier and Type Field Description private final List<RegisterBlockFetcher.FetchBatch>fetchBatchesprivate final List<Field>fieldsprivate final Addressstartprivate Integercount
-
Constructor Summary
Constructors Constructor Description RegisterBlockFetcher.MergedFetchBatch(Address start, Integer count)
-
Method Summary
Modifier and Type Method Description final List<RegisterBlockFetcher.FetchBatch>getFetchBatches()final Unitadd(RegisterBlockFetcher.FetchBatch fetchBatch)-
Methods inherited from class nl.basjes.modbus.schema.fetcher.RegisterBlockFetcher.FetchBatch
compareTo, equals, getCount, getFields, getStart, hashCode, isUsingReadErrorRegisters, setCount, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RegisterBlockFetcher.MergedFetchBatch
RegisterBlockFetcher.MergedFetchBatch(Address start, Integer count)
-
-
Method Detail
-
getFetchBatches
final List<RegisterBlockFetcher.FetchBatch> getFetchBatches()
-
add
final Unit add(RegisterBlockFetcher.FetchBatch fetchBatch)
-
-
-
-