Packages that use Lease
Package
Description
Common data structures used by the I2P protocols: Destination, LeaseSet, PublicKey, Signature, Certificate and their friends.
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).
Garlic message creation, parsing and handling, and the outbound message jobs: one-shot sends, source routing and delivery status handling.
The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
Tunnel pool management: pool lifecycle, peer selection, build scheduling and failure handling for client and exploratory tunnels.
Uses of Lease in net.i2p.data
Subclasses of Lease in net.i2p.dataModifier and TypeClassDescriptionclassImplementation of Lease2 as specified in Proposal 123: New NetDb Entries.classImplementation of MetaLease as specified in Proposal 123: New NetDb Entries.Fields in net.i2p.data with type parameters of type LeaseModifier and TypeFieldDescriptionLeaseSet._decryptedLeasesDecrypted leases backing store.LeaseSet._leasesLeases must stay in the order received, or signature verification will fail.Methods in net.i2p.data that return LeaseModifier and TypeMethodDescriptionEncryptedLeaseSet.getLease(int index) Null if not decrypted.LeaseSet.getLease(int index) Lease at the given index.Methods in net.i2p.data with parameters of type LeaseUses of Lease in net.i2p.data.i2cp
Fields in net.i2p.data.i2cp with type parameters of type LeaseModifier and TypeFieldDescriptionRequestVariableLeaseSetMessage._endpointsThe leases to include in the reply.Methods in net.i2p.data.i2cp that return LeaseModifier and TypeMethodDescriptionRequestVariableLeaseSetMessage.getEndpoint(int endpoint) Gets the tunnel at a position in this LeaseSet.Methods in net.i2p.data.i2cp with parameters of type LeaseModifier and TypeMethodDescriptionvoidRequestVariableLeaseSetMessage.addEndpoint(Lease lease) Add a lease endpoint.Uses of Lease in net.i2p.router.message
Fields in net.i2p.router.message declared as LeaseModifier and TypeFieldDescriptionprivate LeaseOutboundClientMessageOneShotJob._leaseThe actual lease the message is being routed through.Fields in net.i2p.router.message with type parameters of type LeaseModifier and TypeFieldDescription(package private) final ConcurrentHashMap<OutboundCache.HashPair, Lease> OutboundCache.leaseCacheLease cache keyed by source-destination pairs.Methods in net.i2p.router.message with parameters of type LeaseModifier and TypeMethodDescription(package private) voidOutboundCache.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.Method parameters in net.i2p.router.message with type arguments of type LeaseModifier and TypeMethodDescriptionprivate static voidOutboundCache.cleanLeaseCache(Map<OutboundCache.HashPair, Lease> tc) Removes expired Leases from the provided cache.Uses of Lease in net.i2p.router.networkdb.kademlia
Classes in net.i2p.router.networkdb.kademlia that implement interfaces with type arguments of type LeaseModifier and TypeClassDescriptionprivate static classCompare leases by XOR distance to a target hash.Methods in net.i2p.router.networkdb.kademlia that return LeaseModifier and TypeMethodDescriptionprivate LeaseStoreJob.pickReplyTunnel(LeaseSet ls, int attempts, Hash to) Pick a reply tunnel from a LeaseSet for the store response.Methods in net.i2p.router.networkdb.kademlia with parameters of type LeaseUses of Lease in net.i2p.router.tunnel.pool
Classes in net.i2p.router.tunnel.pool that implement interfaces with type arguments of type LeaseModifier and TypeClassDescription(package private) static classAlways build a LeaseSet with Leases in sorted order, so thatLeaseSet.equals(Object)and lease-by-lease equals() always work.Methods in net.i2p.router.tunnel.pool that return LeaseModifier and TypeMethodDescriptionprivate LeaseTunnelPool.buildLeaseFromTunnel(TunnelInfo cfg) Build a Lease from a single tunnel's gateway.Methods in net.i2p.router.tunnel.pool that return types with arguments of type LeaseModifier and TypeMethodDescriptionTunnelPool.buildLeases(List<TunnelInfo> goodTunnels, TunnelInfo zeroHopTunnel) Assemble the Lease objects for the selected tunnels: the single zero-hop lease (if any), then the quality-sorted GOOD tunnels.Methods in net.i2p.router.tunnel.pool with parameters of type LeaseModifier and TypeMethodDescriptionintOrder leases by end time, breaking ties on tunnel identity.private voidTunnelPool.markRotatedOut(Lease rotated, List<TunnelInfo> tunnels, List<TunnelInfo> rotatedOut) Record the tunnel matching the rotated lease as rotated out so the build path can exclude it from the next LeaseSet.Method parameters in net.i2p.router.tunnel.pool with type arguments of type LeaseModifier and TypeMethodDescriptionprivate voidTunnelPool.addDegradedFallbackLease(TreeSet<Lease> leases, List<TunnelInfo> tunnels, boolean isServerPool) Emergency fallback: when the LeaseSet has no leases but one has been published before, add the best degraded tunnel so clients don't lose the destination.private LeaseSetTunnelPool.finalizeLeaseSet(TreeSet<Lease> leases, int wanted, long now) Builds the lease set from the chosen leases.private voidTunnelPool.rotateOldestLeaseForPropagation(TreeSet<Lease> leases, List<TunnelInfo> tunnels, List<TunnelInfo> rotatedOut) Rotate out the oldest lease when its end time matches the previous publication's earliest end time, so floodfill peers see wasNew=true and propagate the LeaseSet onward.