1 package org.jgroups.service.lease; 2 3 10 public interface LeaseFactory { 11 16 long DURATION_ANY = -1; 17 18 24 long DURATION_FOREVER = Long.MAX_VALUE; 25 26 49 Lease newLease(Object leaseTarget, Object tenant, long requestedDuration, 50 boolean isAbsolute) throws LeaseDeniedException; 51 52 69 Lease renewLease(Lease existingLease, long requestedDuration, 70 boolean isAbsolute) throws LeaseDeniedException; 71 72 82 void cancelLease(Lease existingLease) 83 throws UnknownLeaseException; 84 85 } 86 | Popular Tags |