public interface LockRepository extends Closeable
JdbcLockRegistry
needs a reference to a spring-managed (transactional) client service, so this component
has to be declared as a bean.Modifier and Type | Method and Description |
---|---|
boolean |
acquire(String lock) |
void |
close() |
void |
delete(String lock) |
void |
deleteExpired() |
boolean |
isAcquired(String lock) |
boolean |
renew(String lock) |
boolean isAcquired(String lock)
void delete(String lock)
void deleteExpired()
boolean acquire(String lock)
boolean renew(String lock)
void close()
close
in interface AutoCloseable
close
in interface Closeable