Interface SelfHealingService
- All Known Implementing Classes:
DefaultSelfHealingService
public interface SelfHealingService
Service for cleaning up stale item references asynchronously.
The activation interval is configured via self.healing.interval which could be overridden in
local.properties. The whole process can be disabled using self.healing.enabled.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemToHeal(ItemToHeal itemToHeal) Adds items to heal.booleanTells whether the self healing process is enabled.
-
Method Details
-
addItemToHeal
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.
-