Package | Description |
---|---|
org.apache.river.landlord |
This is a utility for services implementing leases.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLeasedResource
This is a convenience abstract LeasedResource that creates a
new LeasedResource instead of modifying the original.
|
Modifier and Type | Method and Description |
---|---|
protected long |
FixedLeasePeriodPolicy.calculateDuration(LeasedResource resource,
long requestedDuration)
Returns the duration this policy is willing to grant for the
passed resource at this time.
|
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 © 2016–2018. All rights reserved.