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