mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Updated SPI model and added examples
This commit is contained in:
@@ -42,15 +42,10 @@ public interface MapEntry<K, V> extends HashEntry<K> {
|
||||
@NotNull Value<V, ?> value();
|
||||
|
||||
/**
|
||||
* Replaces the entry's value with the new one. Returns {@code true} if the replace operation
|
||||
* was successful, {@code false} if it failed for any reason.
|
||||
*
|
||||
* <p>This method if the default implementation for {@link MapEntryOperations#replaceValue},
|
||||
* which might be customized over the default.
|
||||
* Replaces the entry's value with the new one.
|
||||
*
|
||||
* @throws IllegalStateException if some locking/state conditions required to perform replace
|
||||
* operation are not met
|
||||
*/
|
||||
boolean defaultReplaceValue(Value<V, ?> newValue);
|
||||
void doReplaceValue(Value<V, ?> newValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user