public abstract class BytesMapEventListener extends Object implements Serializable
entry
state (position,
limit).metaDataPos
offset metadata area starts in the given entry
, listener
should be itself aware of it's length (see ChronicleMapBuilder.metaDataBytes(int)
).keyPos
offset key area in the given entry
, serialized key size
(using ChronicleMapBuilder.keySizeMarshaller(SizeMarshaller)), directly followed
by the serialized key itself.valuePos
offset value area in the given entry
, serialized value size
(using ChronicleMapBuilder.keySizeMarshaller(SizeMarshaller)), then (optionally)
alignment (see ChronicleMapBuilder.entryAndValueAlignment(Alignment)
), followed by the serialized value itself.There are helper methods ChronicleMap.readKey(Bytes, long)
and
ChronicleMap.readValue(Bytes, long)
that help to deal with this.
Constructor and Description |
---|
BytesMapEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
onGetFound(Bytes entry,
long metaDataPos,
long keyPos,
long valuePos) |
void |
onPut(Bytes entry,
long metaDataPos,
long keyPos,
long valuePos,
boolean added,
boolean replicationEvent) |
void |
onRemove(Bytes entry,
long metaDataPos,
long keyPos,
long valuePos,
boolean replicationEvent) |
public void onGetFound(Bytes entry, long metaDataPos, long keyPos, long valuePos)
public void onPut(Bytes entry, long metaDataPos, long keyPos, long valuePos, boolean added, boolean replicationEvent)
public void onRemove(Bytes entry, long metaDataPos, long keyPos, long valuePos, boolean replicationEvent)
Copyright © 2015. All rights reserved.