public interface ExpirableLockRegistry extends LockRegistry
LockRegistry implementing this interface supports the removal of aged locks
that are not currently locked.| Modifier and Type | Method and Description |
|---|---|
void |
expireUnusedOlderThan(long age)
Remove locks last acquired more than 'age' ago that are not currently locked.
|
obtainvoid expireUnusedOlderThan(long age)
age - the time since the lock was last obtained.IllegalStateException - if the registry configuration does not support this feature.