Package xyz.block.ftl
Interface LeaseClient
-
- All Implemented Interfaces:
public interface LeaseClientClient that can be used to acquire a FTL lease. If the lease cannot be acquired a LeaseFailedException is thrown.
-
-
Method Summary
Modifier and Type Method Description abstract LeaseHandleacquireLease(Duration duration, Array<String> keys)Acquire a lease for the given keys. -
-
Method Detail
-
acquireLease
abstract LeaseHandle acquireLease(Duration duration, Array<String> keys)
Acquire a lease for the given keys. The lease will be held for the given duration.
- Parameters:
duration- The time to acquire the lease forkeys- The lease keys- Returns:
A handle that can be used to release the lease
-
-
-
-