- Type Parameters:
K
-
public class BatchRead<K>
extends java.lang.Object
A class for defining the information required to obtain in a batch.
The generic parameterization represents the class of the key that will be used to find the results in the BatchRead
object. Typically String would be used, but any Object is valid.
Some modbus devices have non-contiguous sets of values within a single register range. These gaps between values may
cause the device to return error responses if a request attempts to read them. In spite of this, because it is
generally more efficient to read a set of values with a single request, the batch read by default will assume that no
such error responses will be returned. If your batch request results in such errors, it is recommended that you
separate the offending request to a separate batch read object, or you can use the "contiguous requests" setting
which causes requests to be partitioned into only contiguous sets.
- Author:
- mlohbihler