Package | Description |
---|---|
org.apache.river.landlord |
This is a utility for services implementing leases.
|
Modifier and Type | Method and Description |
---|---|
LeasePeriodPolicy.Result |
LeasePeriodPolicy.grant(LeasedResource resource,
long requestedDuration)
Calculate the initial expiration and duration for
a new lease.
|
LeasePeriodPolicy.Result |
FixedLeasePeriodPolicy.grant(LeasedResource resource,
long requestedDuration) |
LeasePeriodPolicy.Result |
LeasePeriodPolicy.renew(LeasedResource resource,
long requestedDuration)
Calculate the expiration and duration for an
existing lease that is being renewed.
|
LeasePeriodPolicy.Result |
FixedLeasePeriodPolicy.renew(LeasedResource resource,
long requestedDuration) |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.