java.lang.Object
net.i2p.router.peermanager.ProfilePersistenceHelper.FileMetadata
- Enclosing class:
ProfilePersistenceHelper
A profile file considered for deletion, with the age that decides its order.
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Comparator<ProfilePersistenceHelper.FileMetadata> Least recently active first.private final FileThe profile file on disk.private final longNewest recorded activity, or 0 if the profile records none.private final booleanWhether the peer is genuinely stale rather than merely surplus.Constructor Summary
ConstructorsConstructorDescriptionFileMetadata(File f, long lastActivity, boolean stale) Records one profile file's metadata.Method Summary
Field Details
BY_AGE
Least recently active first.file
The profile file on disk.lastActivity
private final long lastActivityNewest recorded activity, or 0 if the profile records none.stale
private final boolean staleWhether 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 filelastActivity- the last activity time from the filestale- true if the file is past its expiry