Interface LockRepository
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
DefaultLockRepository
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 TypeMethodDescriptionboolean
void
close()
void
void
boolean
isAcquired
(String lock) boolean
-
Method Details
-
isAcquired
-
delete
-
deleteExpired
void deleteExpired() -
acquire
-
renew
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-