Mercurial > hg > blitz_stable
comparison src/org/dancres/blitz/LeaseControl.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 package org.dancres.blitz; | |
2 | |
3 import java.io.IOException; | |
4 | |
5 import net.jini.core.lease.LeaseDeniedException; | |
6 import net.jini.core.lease.UnknownLeaseException; | |
7 | |
8 import org.dancres.blitz.lease.SpaceUID; | |
9 | |
10 /** | |
11 Lease renewal/cancellation is handled via this interface. | |
12 */ | |
13 public interface LeaseControl { | |
14 /** | |
15 @return the actual lease duration assigned as the result of the | |
16 renew. | |
17 */ | |
18 public long renew(SpaceUID aUID, long aDuration) | |
19 throws LeaseDeniedException, UnknownLeaseException, IOException; | |
20 | |
21 public void cancel(SpaceUID aUID) | |
22 throws UnknownLeaseException, IOException; | |
23 } |