@ProviderType
public interface PreparedRead
extends java.lang.AutoCloseable
Driver.prepareRead(java.util.List) method.Driver.prepareRead(java.util.List)| Modifier and Type | Method and Description |
|---|---|
java.util.List<ChannelRecord> |
execute()
Performs the optimized read request described by this
PreparedRead instance. |
java.util.List<ChannelRecord> |
getChannelRecords()
Returns the list of channel records associated with this prepared read.
|
java.util.List<ChannelRecord> execute() throws Driver.ConnectionException, KuraException
PreparedRead instance.
In order to improve efficiency this method can return the same ChannelRecord instances that were supplied
as arguments to the Driver.prepareRead(List) call that created this PreparedRead.
The returned records should not be modified while a valid (not closed) PreparedRead holds a
reference to them, otherwise unpredictable behavior can occur.ChannelRecord instances.KuraException - if the provided PreparedRead is not valid (for example if it has been closed)Driver.ConnectionException - if the connection to the field device is interruptedjava.util.List<ChannelRecord> getChannelRecords()
ChannelRecord instances that were supplied
as arguments to the Driver.prepareRead(List) call that created this PreparedRead.
The returned records should not be modified while a valid (not closed) PreparedRead holds a
reference to them, otherwise unpredictable behavior can occur.