net.i2p.i2ptunnel.access

## Class DestTracker

- java.lang.Object
- - net.i2p.i2ptunnel.access.DestTracker

-     class DestTracker
      extends Object

  Tracks connection attempts for a specific remote destination.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DestTracker(Hash hash, Threshold threshold)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `(package private) AccessCounter` | `getCounter()`
    `(package private) Hash` | `getHash()`
    `(package private) boolean` | `purge(long olderThan)`
    `(package private) boolean` | `recordAccess(long now)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DestTracker

          DestTracker(Hash hash,
                      Threshold threshold)

      Parameters:
        `hash` - hash of the remote destination
        `threshold` - threshold defined in the access rule

  - ### Method Detail

    - #### getCounter

          AccessCounter getCounter()

    - #### getHash

          Hash getHash()

    - #### purge

          boolean purge(long olderThan)

    - #### recordAccess

          boolean recordAccess(long now)

      Returns:
        true if this access causes threshold breach