Interface CycleDetectingLockFactory.Policy
-
- All Known Implementing Classes:
CycleDetectingLockFactory.Policies
- Enclosing class:
- CycleDetectingLockFactory
@Beta @ThreadSafe @Deprecated(since="2022-12-01") public static interface CycleDetectingLockFactory.Policy
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023Encapsulates the action to be taken when a potential deadlock is encountered. Clients can use one of the predefinedCycleDetectingLockFactory.Policiesor specify a custom implementation. Implementations must be thread-safe.- Since:
- 13.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidhandlePotentialDeadlock(CycleDetectingLockFactory.PotentialDeadlockException exception)Deprecated.Called when a potential deadlock is encountered.
-
-
-
Method Detail
-
handlePotentialDeadlock
void handlePotentialDeadlock(CycleDetectingLockFactory.PotentialDeadlockException exception)
Deprecated.Called when a potential deadlock is encountered. Implementations can throw the givenexceptionand/or execute other desired logic.Note that the method will be called even upon an invocation of
tryLock(). AlthoughtryLock()technically recovers from deadlock by eventually timing out, this behavior is chosen based on the assumption that it is the application's wish to prohibit any cyclical lock acquisitions.
-
-