KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > service > lease > RecursiveLeaseRequestException


1 package org.jgroups.service.lease;
2
3 /**
4  * This exception indicates that lease factory has undecided lease request
5  * for the specified lease target and from specified tenant. This exception
6  * usually means that there is problem in lease request algorithm implementation.
7  */

8 public class RecursiveLeaseRequestException extends LeaseDeniedException {
9     
10     protected final Object JavaDoc tenant;
11
12     public RecursiveLeaseRequestException(Object JavaDoc leaseTarget, Object JavaDoc tenant) {
13         super(leaseTarget);
14     
15     this.tenant = tenant;
16     }
17
18     public RecursiveLeaseRequestException(String JavaDoc msg, Object JavaDoc leaseTarget,
19     Object JavaDoc tenant)
20     {
21         super(msg, leaseTarget);
22     
23     this.tenant = tenant;
24     }
25     
26     public Object JavaDoc getTenant() {
27     return tenant;
28     }
29     
30 }
Popular Tags