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 classRetryHistoricalData.RetryState 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description HistoricalDatabadData()voidclearBadData()Removes data flagged as badjava.lang.ExceptionfailureReason()voidmarkAllAsBad()Marks all RetryHistoricalData values as badvoidmarkAsBad(HistoricalTagValue value)static BasicDataTransactionnonEnabledData(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)booleanretryEnabled()RetryHistoricalData.RetryStateretryState()voidsetFailureReason(java.lang.Exception e)static voidsetRetry(HistoricalData data, RetryHistoricalData.RetryState state)voidsetRetry(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-HistoricalTagValuethat store wasn't able to process
 
- 
badData
@Nullable HistoricalData badData()
- Returns:
 - Copy of the 
HistoricalDatacontaining 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 
 - 
 
 -