## Uses of Class
net.i2p.data.Lease

- Packages that use Lease
  Package | Description
  --- | ---
  net.i2p.data | These classes define the common data structures used by the various I2P protocols.
  net.i2p.data.i2cp | The Invisible Internet Client Protocol (I2CP) allows applications simplified access to I2P network without requiring them to deal with the issues involved with the Invisible Internet Network Protocol (I2NP).
  net.i2p.router.message | Garlic message creation, parsing, and source routing for I2P communications.

- - ### Uses of Lease in net.i2p.data

    Subclasses of Lease in net.i2p.data
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Lease2` Implementation of Lease2 as specified in Proposal 123: New NetDb Entries.
    `class` | `MetaLease` Implementation of MetaLease as specified in Proposal 123: New NetDb Entries.

    Fields in net.i2p.data with type parameters of type Lease
    Modifier and Type | Field and Description
    --- | ---
    `protected List<Lease>` | LeaseSet.`_leases`

    Methods in net.i2p.data that return Lease
    Modifier and Type | Method and Description
    --- | ---
    `Lease` | LeaseSet.`getLease(int index)`
    `Lease` | EncryptedLeaseSet.`getLease(int index)`

    Methods in net.i2p.data with parameters of type Lease
    Modifier and Type | Method and Description
    --- | ---
    `void` | LeaseSet.`addLease(Lease lease)` Adds a lease to this leaseset.
    `void` | MetaLeaseSet.`addLease(Lease lease)`
    `void` | LeaseSet2.`addLease(Lease lease)`

  - ### Uses of Lease in net.i2p.data.i2cp

    Methods in net.i2p.data.i2cp that return Lease
    Modifier and Type | Method and Description
    --- | ---
    `Lease` | RequestVariableLeaseSetMessage.`getEndpoint(int endpoint)`

    Methods in net.i2p.data.i2cp with parameters of type Lease
    Modifier and Type | Method and Description
    --- | ---
    `void` | RequestVariableLeaseSetMessage.`addEndpoint(Lease lease)`

  - ### Uses of Lease in net.i2p.router.message

    Fields in net.i2p.router.message with type parameters of type Lease
    Modifier and Type | Field and Description
    --- | ---
    `(package private) ConcurrentHashMap<OutboundCache.HashPair,Lease>` | OutboundCache.`leaseCache` Lease cache keyed by source-destination pairs.

    Methods in net.i2p.router.message with parameters of type Lease
    Modifier and Type | Method and Description
    --- | ---
    `(package private) void` | OutboundCache.`clearCaches(OutboundCache.HashPair hashPair, Lease lease, TunnelInfo inTunnel, TunnelInfo outTunnel)` Clears cache entries related to the provided key and elements upon failure, allowing retries with fresh associations.