Package | Description |
---|---|
net.jini.core.lease |
These are distributed leasing interfaces and classes.
|
net.jini.core.lookup |
These are the lookup service interfaces and classes.
|
net.jini.lease |
Standard service and utility classes for managing leases.
|
org.apache.river.landlord |
This is a utility for services implementing leases.
|
org.apache.river.lease |
Some basic utility classes for helping with
client-side lease renewal operations.
|
org.apache.river.outrigger |
This is an implementation of a JavaSpaces technology-enabled service.
|
Modifier and Type | Method and Description |
---|---|
void |
Lease.cancel()
Used by the lease holder to indicate that it is no longer interested
in the resource or information held by the lease.
|
void |
Lease.renew(long duration)
Used to renew a lease for an additional period of time, specified in
milliseconds.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceRegistration.addAttributes(Entry[] attrSets)
Adds the specified attribute sets (those that aren't duplicates of
existing attribute sets) to the registered service item.
|
void |
ServiceRegistration.modifyAttributes(Entry[] attrSetTemplates,
Entry[] attrSets)
Modifies existing attribute sets.
|
void |
ServiceRegistration.setAttributes(Entry[] attrSets)
Deletes all of the service item's existing attributes, and replaces
them with the specified attribute sets.
|
Modifier and Type | Method and Description |
---|---|
void |
LeaseRenewalManager.cancel(Lease lease)
Removes a given lease from the managed set, and cancels it.
|
long |
LeaseRenewalManager.getExpiration(Lease lease)
Returns the current desired expiration time associated with a
particular lease, (not the actual expiration that was granted
when the lease was created or last renewed).
|
void |
LeaseRenewalManager.remove(Lease lease)
Removes a given lease from the managed set of leases; but does
not cancel the given lease.
|
void |
LeaseRenewalManager.setExpiration(Lease lease,
long expiration)
Replaces the current desired expiration of a given lease from the
managed set with a new desired expiration time.
|
Modifier and Type | Method and Description |
---|---|
void |
LandlordLease.cancel() |
void |
LocalLandlord.cancel(Uuid cookie)
Cancel the lease that is associated with the given cookie.
|
void |
Landlord.cancel(Uuid cookie)
Called by the lease when its
cancel method is
called. |
protected long |
LandlordLease.doRenew(long renewDuration) |
long |
LocalLandlord.renew(Uuid cookie,
long duration)
Renew the lease that is associated with the given cookie.
|
long |
Landlord.renew(Uuid cookie,
long duration)
Called by the lease when its
renew method is called. |
Modifier and Type | Method and Description |
---|---|
protected abstract long |
AbstractLease.doRenew(long duration)
Renew the lease for a duration relative to now, and return
the duration actually granted.
|
void |
AbstractLease.renew(long duration)
Renew the lease for a duration relative to now.
|
Modifier and Type | Method and Description |
---|---|
void |
OutriggerServerImpl.cancel(Uuid cookie) |
long |
OutriggerServerImpl.renew(Uuid cookie,
long extension) |
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.