java.lang.Object
net.i2p.router.web.helpers.ProfileOrganizerRenderer.ProfileSelection
Enclosing class:
ProfileOrganizerRenderer

private static class ProfileOrganizerRenderer.ProfileSelectionextends Object
The sorted peer set, hidden-stale count, hide window, and pre-computed tier snapshots from ProfileOrganizerRenderer.loadProfiles(int). The tier sets are local copies taken under the organizer read lock once, so renderers and comparators can use contains() without acquiring any locks.
  • Field Details

    • order

      final Set<PeerProfile> order
      The profiles in display order.
    • older

      final int older
      Profiles older than the display window.
    • hideWindow

      final long hideWindow
      Hide window for stale profiles, 0 for none.
    • fastSet

      final Set<Hash> fastSet
      Snapshot of fast-tier hashes, taken once under organizer read lock.
    • highCapSet

      final Set<Hash> highCapSet
      Snapshot of high-capacity-tier hashes, taken once under organizer read lock.
    • integratedSet

      final Set<Hash> integratedSet
      Snapshot of well-integrated hashes, taken once under organizer read lock.
  • Constructor Details

    • ProfileSelection

      ProfileSelection(Set<PeerProfile> order, int older, long hideWindow, Set<Hash> fastSet, Set<Hash> highCapSet, Set<Hash> integratedSet)
      The profiles and sets for one page.
      Parameters:
      order - the profiles in display order
      older - the profiles older than the window
      hideWindow - the age beyond which profiles are hidden
      fastSet - the hashes of the fast peers
      highCapSet - the hashes of the high capacity peers
      integratedSet - the hashes of the integrated peers