public final class HistoryExpirationPolicy
extends org.mule.runtime.api.component.AbstractComponent
BatchJobInstance should be expired from the historic records.
Regardless of the provided criteria, it will never expire instances which are on an
executable state.| Constructor and Description |
|---|
HistoryExpirationPolicy(HistoryExpirationCriteria criteria)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldExpire(BatchJobInstance jobInstance)
Determines if the
jobInstance should be expired from the historic records. |
public HistoryExpirationPolicy(HistoryExpirationCriteria criteria)
criteria - a HistoryExpirationCriteria. Cannot be nullIllegalArgumentException - if criteria is nullpublic boolean shouldExpire(BatchJobInstance jobInstance)
jobInstance should be expired from the historic records.
If jobInstance is on an executable state, then it returns false. Otherwise, the decision is delegated to the
criteriajobInstance - a BatchJobInstancetrue if the jobInstance can be expired from the historic records. false otherwiseCopyright © 2006–2019 MuleSoft, Inc.. All rights reserved.