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,
boolean hasValueChanged,
byte identifier,
byte replacedIdentifier,
long timeStamp,
long replacedTimeStamp,
SharedSegment segment) |
void |
onRemove(Bytes entry,
long metaDataPos,
long keyPos,
long valuePos,
boolean replicationEvent,
byte identifier,
byte replacedIdentifier,
long timeStamp,
long replacedTimeStamp,
SharedSegment segment) |
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, boolean hasValueChanged, byte identifier, byte replacedIdentifier, long timeStamp, long replacedTimeStamp, SharedSegment segment)
public void onRemove(Bytes entry, long metaDataPos, long keyPos, long valuePos, boolean replicationEvent, byte identifier, byte replacedIdentifier, long timeStamp, long replacedTimeStamp, SharedSegment segment)
Copyright © 2015. All rights reserved.