Interface PollingOutput
public interface PollingOutput
Output parameter provided to the poll method of an
PollingProtocolAdapter.
It can be used to
- Add data points
- Finish the polling
- Failing the polling
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataPoint(@NotNull DataPoint dataPoint) Adds the given data point to this sample.voidaddDataPoint(@NotNull String tagName, @NotNull Object tagValue) Adds a data point to this sample.voidSignals that something went wrong during polling.voidSignals that something went wrong during polling.voidfinish()Signals Edge that all data points are added and the further processing is done.
-
Method Details
-
addDataPoint
Adds a data point to this sample.- Parameters:
tagName- the name for the tag of this data pointtagValue- the value of this data point
-
addDataPoint
Adds the given data point to this sample.- Parameters:
dataPoint- the data point to add.
-
finish
void finish()Signals Edge that all data points are added and the further processing is done. If no data points were added until this point, no publish will be created. -
fail
Signals that something went wrong during polling. As a result no publish is created from data. Data added before calling fail() will not be processed further.- Parameters:
t- Throwable indicating what went wrong.errorMessage- an optional error message delivering further insights.
-
fail
Signals that something went wrong during polling. As a result no publish is created from data. Data added before calling fail() will not be processed further.- Parameters:
errorMessage- a message indicating what went wrong.
-