Package | Description |
---|---|
com.mchange.v2.encounter |
Modifier and Type | Class and Description |
---|---|
class |
EqualityEncounterCounter
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. Clients should explicit choose the semantics they want
via WeakEqualityEncounterCounter or StrongEqualityEncounterCounter
|
class |
IdentityEncounterCounter
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)
|
class |
StrongEqualityEncounterCounter
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.
|
class |
WeakEqualityEncounterCounter
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.
|
class |
WeakIdentityEncounterCounter |
Modifier and Type | Method and Description |
---|---|
static EncounterCounter |
EncounterUtils.createStrong(Identicator id) |
static EncounterCounter |
EncounterUtils.createWeak(Identicator id) |
static EncounterCounter |
EncounterUtils.syncWrap(EncounterCounter inner)
returns the inner EncounterCounter wrapped so that all
method calls are effectively synchronized.
|
Modifier and Type | Method and Description |
---|---|
static EncounterCounter |
EncounterUtils.syncWrap(EncounterCounter inner)
returns the inner EncounterCounter wrapped so that all
method calls are effectively synchronized.
|
Copyright © 2018 com.mchange. All rights reserved.