Class DestTracker


  • class DestTracker
    extends Object
    Tracks the connection attempts for a given remote Destination
    Since:
    0.9.40
    • Constructor Detail

      • DestTracker

        DestTracker​(Hash hash,
                    Threshold threshold)
        Parameters:
        hash - hash of the remote destination
        threshold - threshold defined in the access rule
    • Method Detail

      • getHash

        Hash getHash()
      • recordAccess

        boolean recordAccess​(long now)
        Returns:
        true if this access causes threshold breach
      • purge

        boolean purge​(long olderThan)