Interface LockRepository
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
DefaultLockRepository
public interface LockRepository extends Closeable
Encapsulation of the SQL shunting that is needed for locks. A
JdbcLockRegistry
needs a reference to a spring-managed (transactional) client service, so this component
has to be declared as a bean.- Since:
- 4.3
- Author:
- Dave Syer, Alexandre Strubel
-
Method Summary
Modifier and Type Method Description boolean
acquire(String lock)
void
close()
void
delete(String lock)
void
deleteExpired()
boolean
isAcquired(String lock)
boolean
renew(String lock)
-
Method Details
-
isAcquired
-
delete
-
deleteExpired
void deleteExpired() -
acquire
-
renew
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-