class DeformedLeaseList extends Object
DeformedLeaseList
provides a list for keeping track of
of client lease that could not be fully recovered during log
recovery. Unless otherwise noted all the methods in the class are
not thread safe.Modifier and Type | Field and Description |
---|---|
private Set |
leases
A list of all the leases we are tracking.
|
Constructor and Description |
---|
DeformedLeaseList() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(ClientLeaseWrapper clw)
Add a wrapped client lease to the list of deformed client leases.
|
(package private) ClientLeaseWrapper |
query(Lease clientLease,
Map table)
Query the list to see if the specified client lease is in this list
of deformed leases.
|
(package private) void |
remove(ClientLeaseWrapper clw)
Remove a lease from the list.
|
private Set leases
void add(ClientLeaseWrapper clw)
clw
- a deformed client leasevoid remove(ClientLeaseWrapper clw)
clw
- a deformed client leaseClientLeaseWrapper query(Lease clientLease, Map table)
clientLease
- the client lease which may be
referenced by a deformed client lease wrappertable
- a table mapping client leases to client lease
wrappers. Any client lease wrappers encountered during
the query that are no longer deformed will be placed in
this table. It is assumed that no other thread is trying
to access this table.cl
, null
otherwiseCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.