Interface RetryHistoricalData
-
- All Superinterfaces:
HistoricalData
,java.io.Serializable
- All Known Subinterfaces:
ScanclassHistorySet
- All Known Implementing Classes:
BasicScanclassHistorySet
public interface RetryHistoricalData extends HistoricalData
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RetryHistoricalData.RetryState
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description HistoricalData
badData()
void
clearBadData()
Removes data flagged as badjava.lang.Exception
failureReason()
void
markAllAsBad()
Marks all RetryHistoricalData values as badvoid
markAsBad(HistoricalTagValue value)
static BasicDataTransaction
nonEnabledData(HistoricalData data)
Good data that has been retried yetstatic java.util.stream.Stream<HistoricalData>
nonRetryHistoricalData(HistoricalData data)
static org.apache.commons.lang3.tuple.Pair<BasicDataTransaction,java.lang.Exception>
onlyAttemptedBadData(HistoricalData data)
static java.util.stream.Stream<RetryHistoricalData>
onlyRetryHistoricalData(HistoricalData data)
boolean
retryEnabled()
RetryHistoricalData.RetryState
retryState()
void
setFailureReason(java.lang.Exception e)
static void
setRetry(HistoricalData data, RetryHistoricalData.RetryState state)
void
setRetry(RetryHistoricalData.RetryState state)
-
Methods inherited from interface com.inductiveautomation.ignition.gateway.history.HistoricalData
getDataCount, getFlavor, getLoggerName, getSignature
-
-
-
-
Method Detail
-
markAllAsBad
void markAllAsBad()
Marks all RetryHistoricalData values as bad
-
clearBadData
void clearBadData()
Removes data flagged as bad
-
markAsBad
void markAsBad(HistoricalTagValue value)
- Parameters:
value
-HistoricalTagValue
that store wasn't able to process
-
badData
@Nullable HistoricalData badData()
- Returns:
- Copy of the
HistoricalData
containing only data that was marked as bad or null if no data is added
-
setFailureReason
void setFailureReason(java.lang.Exception e)
-
failureReason
java.lang.Exception failureReason()
-
setRetry
void setRetry(RetryHistoricalData.RetryState state)
-
retryState
RetryHistoricalData.RetryState retryState()
-
retryEnabled
boolean retryEnabled()
-
onlyAttemptedBadData
static org.apache.commons.lang3.tuple.Pair<BasicDataTransaction,java.lang.Exception> onlyAttemptedBadData(HistoricalData data)
-
setRetry
static void setRetry(HistoricalData data, RetryHistoricalData.RetryState state)
-
onlyRetryHistoricalData
static java.util.stream.Stream<RetryHistoricalData> onlyRetryHistoricalData(HistoricalData data)
-
nonRetryHistoricalData
static java.util.stream.Stream<HistoricalData> nonRetryHistoricalData(HistoricalData data)
-
nonEnabledData
static BasicDataTransaction nonEnabledData(HistoricalData data)
Good data that has been retried yet
-
-