mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Made listeners almost work for replication
This commit is contained in:
@@ -172,33 +172,6 @@ public interface Replica extends Closeable {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* provides a key and value from NativeBytes, this can be used in conjunction with the
|
||||
* modification iterator to get the key and value out of the NativeBytes
|
||||
*/
|
||||
interface EntryResolver<K, V> {
|
||||
|
||||
/**
|
||||
* gets the key from the entry
|
||||
*
|
||||
* @param entry the bytes which the bytes which point to the entry
|
||||
* @param usingKey the key object to reuse, if possible
|
||||
* @return the key which is in the entry
|
||||
*/
|
||||
K key(@NotNull Bytes entry, K usingKey);
|
||||
|
||||
/**
|
||||
* gets the value from the entry
|
||||
*
|
||||
* @param entry the bytes which reference to the entry
|
||||
* @param usingValue the value object to reuse, if possible
|
||||
* @return the value which is in the entry or null if the value has been remove from the map
|
||||
*/
|
||||
V value(@NotNull Bytes entry, V usingValue);
|
||||
|
||||
boolean wasRemoved(@NotNull Bytes entry);
|
||||
}
|
||||
|
||||
/**
|
||||
* Implemented typically by a replicator, This interface provides the event, which will get
|
||||
* called whenever a put() or remove() has occurred to the map
|
||||
|
||||
Reference in New Issue
Block a user