public class HistoryExpirationCriteria
extends org.mule.runtime.api.component.AbstractComponent
BatchJobInstance should be expired or not.| Constructor and Description |
|---|
HistoryExpirationCriteria(long maxAge,
TimeUnit ageUnit)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldExpire(com.mulesoft.mule.runtime.module.batch.api.BatchJobInstance jobInstance)
|
public boolean shouldExpire(com.mulesoft.mule.runtime.module.batch.api.BatchJobInstance jobInstance)
jobInstance should be expired from the historic records based on the relationship between
BatchJobInstance.getCreationTime() and maxAge/ageUnitjobInstance - a BatchJobInstancetrue if the jobInstance can be expired from the historic records. false otherwiseCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.