java.lang.Object
net.i2p.router.peermanager.ProfilePersistenceHelper.FileMetadata
Enclosing class:
ProfilePersistenceHelper

private static final class ProfilePersistenceHelper.FileMetadataextends Object
A profile file considered for deletion, with the age that decides its order.
  • Field Details

    • BY_AGE

      Least recently active first.
    • file

      private final File file
      The profile file on disk.
    • lastActivity

      private final long lastActivity
      Newest recorded activity, or 0 if the profile records none.
    • stale

      private final boolean stale
      Whether the peer is genuinely stale rather than merely surplus.
  • Constructor Details

    • FileMetadata

      FileMetadata(File f, long lastActivity, boolean stale)
      Records one profile file's metadata.
      Parameters:
      f - the profile file
      lastActivity - the last activity time from the file
      stale - true if the file is past its expiry