Class LeaseManager.Lease
java.lang.Object
org.apache.hadoop.hbase.regionserver.LeaseManager.Lease
- All Implemented Interfaces:
Comparable<Delayed>
,Delayed
- Enclosing class:
- LeaseManager
This class tracks a single Lease.
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private final String
private int
private final LeaseListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
long
Returns the lease nameReturns listenerint
hashCode()
void
Resets the expiration time of the lease.
-
Field Details
-
leaseName
-
listener
-
leaseTimeoutPeriod
-
expirationTime
-
-
Constructor Details
-
Lease
Lease(String leaseName, int leaseTimeoutPeriod, LeaseListener listener)
-
-
Method Details
-
getLeaseName
Returns the lease name -
getListener
Returns listener -
equals
-
hashCode
-
getDelay
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Delayed>
-
resetExpirationTime
Resets the expiration time of the lease.
-