Class BasicActionExpiryScanner<T extends BasicAction>
java.lang.Object
com.arjuna.ats.internal.arjuna.recovery.BasicActionExpiryScanner<T>
- All Implemented Interfaces:
ExpiryScanner
- Direct Known Subclasses:
AdvancedAtomicActionExpiryScanner
,AdvancedAtomicActionPurgeExpiryScanner
public abstract class BasicActionExpiryScanner<T extends BasicAction>
extends Object
implements ExpiryScanner
This class is a base class for an
ExpiryScanner
for expired
BasicAction
items using creation time to evaluate if items are
considered too old. It uses
RecoveryEnvironmentBean.expiryScanInterval
to calculate expiry time.
It does not need the application to run all the time to work since it only
needs one successful run that can be run immediately on application startup.
It is very important to know that application downtimes lasting longer than expiry time will lead to immediate item handling before recovery is getting into touch. That might cause corrupting the system!
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BasicActionExpiryScanner
-
-
Method Details
-
scan
public void scan()Description copied from interface:ExpiryScanner
perform a scan- Specified by:
scan
in interfaceExpiryScanner
-
toBeUsed
public boolean toBeUsed()Description copied from interface:ExpiryScanner
Is this scanner to be used. (E.g. if zero age means "don't remove", and it has been set to zero, toBeUsed replies false)- Specified by:
toBeUsed
in interfaceExpiryScanner
-