Interface DistributedLock.Lease
- All Superinterfaces:
AutoCloseable
- Enclosing interface:
DistributedLock
A lock claim that releases only its own ownership token when closed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Releases this lease; repeated calls must be harmless.
-
Method Details
-
close
void close()Releases this lease; repeated calls must be harmless.- Specified by:
closein interfaceAutoCloseable
-