public class LeaseFactory extends Object
|Constructor and Description|
Create a new
|Modifier and Type||Method and Description|
Return a new
public LeaseFactory(Landlord landlord, Uuid landlordUuid)
LeaseFactorythat will create
LandlordLeases with the specified
landlord- the inner proxy that the leases will use to communicate back to the server.
landlordUuid- a universally unique id that has been assigned to the server granting of the lease. Ideally the
landlord.getUuidwould return if
ReferentUuid. Used to determine when two leases can be batched together.
NullPointerException- if either argument is
public LandlordLease newLease(Uuid cookie, long expiration)
LandlordLeasewith the specified initial expiration and cookie using the inner proxy and
Uuidthe factory was created with. Will return a
ConstrainableLandlordLeaseif inner proxy this factory was created with implements
Uuidthat will universally and uniquely identify the lease
expiration- the initial expiration time of the lease.
NullPointerException- if the
public TrustVerifier getVerifier()
TrustVerifierthat will verify the proxies produced by this factory. Currently the verifier returned will be an instance of
UnsupportedOperationException- if the
Landlordthis factory was created with does not implement both
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.