public class LandlordUtil extends Object
Constructor and Description |
---|
LandlordUtil() |
Modifier and Type | Method and Description |
---|---|
static Map |
cancelAll(LocalLandlord landlord,
Uuid[] cookies)
Call
landlord.cancel() for each object in cookies[] , passing
cookies[i] . |
static Landlord.RenewResults |
renewAll(LocalLandlord landlord,
Uuid[] cookies,
long[] durations)
Call
landlord.renew() for each object in cookie[] , passing
cookie[i] and durations[i] . |
public static Landlord.RenewResults renewAll(LocalLandlord landlord, Uuid[] cookies, long[] durations)
landlord.renew()
for each object in cookie[]
, passing
cookie[i]
and durations[i]
. Gather the results and exceptions into
a RenewResults
object.landlord
- A grantor of leases.cookies
- an array of Uuid
s, each uniquely and universally identifying a
leasedurations
- an array of longs, each representing a duration in milliseconds that the
client wants the lease associated with the object from the corresponding
element of cookies
renewed for.RenewResults
object that contains the new duration of each lease that
was successfully renewed or the exception encountered for each lease that could not be
renewed.public static Map cancelAll(LocalLandlord landlord, Uuid[] cookies)
landlord.cancel()
for each object in cookies[]
, passing
cookies[i]
.landlord
- a grantor of leasescookies
- an array of Uuid
s, each uniquely and universally identifying a
leasenull
, otherwise, return a Map
that for each failed cancel()
call maps the passed cookie object to the
exception that was generatedCopyright © GigaSpaces.