Made listeners almost work for replication

This commit is contained in:
leventov
2015-06-02 19:02:55 +01:00
parent 62a50e2aee
commit f1da352a5d
45 changed files with 3472 additions and 3279 deletions
@@ -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