Package com.mchange.v2.encounter


package com.mchange.v2.encounter
  • Class
    Description
     
     
    Deprecated.
    -- Use of WeakHashMap can't properly guarantee counts with equality semantics, as an Object can be encounted garbage collected, then re-encountered with no apparent history.
    Deprecated.
    use WeakIdentityEncounterCounter (name changed to emphasize for library users that they need to understand whether implementations are weak or strong to avoid accidental reference retention in strong counters)
    NOTE: Use of StrongEqualityEncounterCounter will maintain a reference to any Object it has encountered, leading potentially to memory leaks if it is resources are not reset.
    NOTE: Use of WeakEqualityEncounterCounter can't fully guarantee counts with equality semantics, as an Object can be encounted garbage collected, then re-encountered with no apparent history.