|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.io.journal.JournalBinaryStore.ClearListener
protected static class JournalBinaryStore.ClearListener
The ClearListener is used to ensure that entries are removed from the journal when the corresponding keys are cleared from the ticket tree.
Note: this listener directly holds references to the state members of the containing JournalBinaryStore as it could be run during the context of a JournalBinaryStore.dispose() call.
| Field Summary | |
|---|---|
protected java.util.concurrent.atomic.AtomicLong |
f_atomicSizeThe atomic holding the size counter. |
protected Journal |
f_journalThe Journal. |
protected BinaryLongMap |
f_treeThe BinaryLongMap mapping keys to journal tickets. |
| Constructor Summary | |
|---|---|
JournalBinaryStore.ClearListener(BinaryLongMap blm, Journal journal, java.util.concurrent.atomic.AtomicLong atomicSize)Construct a ClearListener for the specified BinaryLongMap and journal. |
|
| Method Summary | |
|---|---|
void |
keyAdded(Binary binKey)A notification that the primary map has added a new Binary/long key/value mapping; this implicitly creates a new key/value mapping in each delegating map, with the value being 0L. |
void |
keyRemoving(Binary binKey)A notification that the primary map is removing a Binary/long key/value mapping; this implies that the existing key/value mapping for the same Binary key in each delegating map is also being removed. |
void |
mapCleared()A notification that the primary map has been cleared; this implies that all of the existing key/value mappings in each delegating map have also been removed. |
void |
mapClearing()A notification that the primary map is about to be cleared; this implies that all of the existing key/value mappings in each delegating map are about to be removed, but that no per-mapping events will be generated in response to those removals. |
| Field Detail |
|---|
protected final BinaryLongMap f_tree
protected final Journal f_journal
protected final java.util.concurrent.atomic.AtomicLong f_atomicSize
| Constructor Detail |
|---|
public JournalBinaryStore.ClearListener(BinaryLongMap blm,
Journal journal,
java.util.concurrent.atomic.AtomicLong atomicSize)
blm - the binary long map holding journal ticketsjournal - the journalatomicSize - the atomic size counter to update| Method Detail |
|---|
public void keyAdded(Binary binKey)
keyAdded in interface MultiBinaryLongMap.BinaryLongMapListenerbinKey - the key that was addedpublic void keyRemoving(Binary binKey)
keyRemoving in interface MultiBinaryLongMap.BinaryLongMapListenerbinKey - the key that is being removedpublic void mapClearing()
mapClearing in interface MultiBinaryLongMap.BinaryLongMapListenerpublic void mapCleared()
mapCleared in interface MultiBinaryLongMap.BinaryLongMapListener
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||