private class MailboxImpl.LocalLandlordAdaptor extends Object implements LocalLandlord
Modifier | Constructor and Description |
---|---|
private |
MailboxImpl.LocalLandlordAdaptor() |
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-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.