private class MailboxImpl.LocalLandlordAdaptor extends Object implements LocalLandlord
| Modifier | Constructor and Description |
|---|---|
private |
LocalLandlordAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(Uuid cookie)
Cancel the lease that is associated with the given cookie.
|
long |
renew(Uuid cookie,
long extension)
Renew the lease that is associated with the given cookie.
|
public long renew(Uuid cookie, long extension) throws LeaseDeniedException, UnknownLeaseException
LocalLandlordrenew in interface LocalLandlordcookie - an object that universally and uniquely identifies a
lease granted by this LocalLandlordextension - the duration in milliseconds the client
wants the lease renewed forLeaseDeniedException - if the landlord is unwilling to
renew the leaseUnknownLeaseException - if landlord does not know about
a lease with the specified cookiepublic void cancel(Uuid cookie) throws UnknownLeaseException
LocalLandlordcancel in interface LocalLandlordcookie - an object that universally and uniquely identifies a
lease granted by this LocalLandlordUnknownLeaseException - if landlord does not know about
a lease with the specified cookieCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.