public interface ILeaseTaker<T extends Lease>
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getWorkerIdentifier() |
java.util.Map<java.lang.String,T> |
takeLeases()
Compute the set of leases available to be taken and attempt to take them.
|
java.util.Map<java.lang.String,T> takeLeases() throws DependencyException, InvalidStateException
DependencyException - on unexpected DynamoDB failuresInvalidStateException - if lease table does not existjava.lang.String getWorkerIdentifier()