Interface SelfHealingService
-
- All Known Implementing Classes:
DefaultSelfHealingService
public interface SelfHealingServiceService for cleaning up stale item references asynchronously.The activation interval is configured via
self.healing.intervalwhich could be overridden in local.properties. The whole process can be disabled usingself.healing.enabled.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddItemToHeal(ItemToHeal itemToHeal)Adds items to heal.booleanisEnabled()Tells whether the self healing process is enabled.
-
-
-
Method Detail
-
addItemToHeal
void addItemToHeal(ItemToHeal itemToHeal)
Adds items to heal.Accumulates those items for scheduled processing through
WritePersistenceGateway.persist(ChangeSet changeSet).The scheduled method is
DefaultSelfHealingService.batchItems().Item will be only passed to WritePersistenceGateway when current transaction is committed.
- Parameters:
itemToHeal- item for later scheduled processing
-
isEnabled
boolean isEnabled()
Tells whether the self healing process is enabled.
-
-