void |
ContractController.cancel(Contract<T> contract) |
This will cancel the lease and release the resource.
|
void |
ContractLease.cancel() |
This will cancel the lease and release the resource.
|
void |
Lease.cancel() |
This will cancel the lease and release the resource.
|
long |
ContractLease.getExpiry(java.util.concurrent.TimeUnit unit) |
Determines the duration remaining before the lease expires.
|
long |
Lease.getExpiry(java.util.concurrent.TimeUnit unit) |
Determines the duration remaining before the lease expires.
|
void |
ContractController.issue(Contract<T> contract) |
This method will establish a contract for the given duration.
|
boolean |
LeaseCleaner.issue(Contract<T> contract) |
This method will establish a contract for a given resource.
|
void |
ContractController.renew(Contract<T> contract) |
This ensures that the contract is renewed for the duration on
the contract, which may have changed since it was issued or
last renewed.
|
void |
ContractLease.renew(long duration,
java.util.concurrent.TimeUnit unit) |
This ensures that the leased resource is maintained for the
specified number of TimeUnit seconds.
|
void |
Lease.renew(long duration,
java.util.concurrent.TimeUnit unit) |
This ensures that the leased resource is maintained for the
specified number of TimeUnit seconds.
|
boolean |
LeaseCleaner.revoke(Contract<T> contract) |
This revokes a contract that has previously been issued.
|