Package | Description |
---|---|
org.apache.river.landlord |
This is a utility for services implementing leases.
|
org.apache.river.outrigger |
This is an implementation of a JavaSpaces technology-enabled service.
|
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) |
Modifier and Type | Interface and Description |
---|---|
interface |
StorableResource<T extends LeasedResource>
Sub-interface of
StorableObject that must be implemented by
objects that represent leased resources and must persist their state. |
Modifier and Type | Interface and Description |
---|---|
interface |
StorableResource<T extends LeasedResource>
Sub-interface of
StorableObject that must be implemented by
objects that represent leased resources and must persist their state. |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.