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
LocalLandlord
renew
in interface LocalLandlord
cookie
- an object that universally and uniquely identifies a
lease granted by this LocalLandlord
extension
- 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 cookie
public void cancel(Uuid cookie) throws UnknownLeaseException
LocalLandlord
cancel
in interface LocalLandlord
cookie
- an object that universally and uniquely identifies a
lease granted by this LocalLandlord
UnknownLeaseException
- if landlord does not know about
a lease with the specified cookie
Copyright 2007-2016, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.