public class RemoteMapView<K,MV,V> extends VanillaMapView<K,MV,V>
| Constructor and Description |
|---|
RemoteMapView(Class keyClass,
Class valueType,
Asset asset,
KeyValueStore<K,MV,V> kvStore,
boolean putReturnsNull,
boolean removeReturnsNull) |
RemoteMapView(RequestContext context,
Asset asset,
KeyValueStore<K,MV,V> kvStore) |
| Modifier and Type | Method and Description |
|---|---|
<A,R> R |
applyTo(net.openhft.chronicle.core.util.SerializableBiFunction<MapView<K,MV,V>,A,R> function,
A arg)
Apply a function to an Updatable which is assumed to not change the visited in any significant way.
|
<R> R |
applyTo(net.openhft.chronicle.core.util.SerializableFunction<MapView<K,MV,V>,R> function)
Apply a function to an Updatable which is assumed to not change the visited in any significant way.
|
<T,R> R |
applyToKey(K key,
net.openhft.chronicle.core.util.SerializableBiFunction<V,T,R> function,
T argument)
Apply a function which takes an argument.
|
<R> R |
applyToKey(K key,
net.openhft.chronicle.core.util.SerializableFunction<V,R> function)
Apply a function to the visitable and return the result.
|
void |
asyncUpdate(net.openhft.chronicle.core.util.SerializableUpdater<MapView<K,MV,V>> updateFunction)
Update an Updatable potentially asynchronously.
|
<A> void |
asyncUpdate(net.openhft.chronicle.core.util.SerializableUpdaterWithArg<MapView<K,MV,V>,A> updateFunction,
A arg)
Update an Updatable potentially asynchronously.
|
<T> void |
asyncUpdateKey(K key,
net.openhft.chronicle.core.util.SerializableBiFunction<V,T,V> updateFunction,
T argument)
Apply a function to visitable potentially asynchronously.
|
void |
asyncUpdateKey(K key,
net.openhft.chronicle.core.util.SerializableFunction<V,V> updateFunction)
Apply a function to visitable potentially asynchronously.
|
V |
compute(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
V |
computeIfAbsent(K key,
java.util.function.Function<? super K,? extends V> mappingFunction) |
V |
computeIfPresent(K key,
java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction) |
boolean |
containsValue(Object value) |
boolean |
equals(Object o) |
int |
hashCode() |
V |
merge(K key,
V value,
java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction) |
V |
putIfAbsent(K key,
V value) |
Reference<V> |
referenceFor(K key)
Obtain a reference the value for a key
|
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) |
<R> R |
syncUpdate(net.openhft.chronicle.core.util.SerializableUpdater<MapView<K,MV,V>> updateFunction,
net.openhft.chronicle.core.util.SerializableFunction<MapView<K,MV,V>,R> returnFunction)
Apply a function to update an Updatable and apply a seconf function to derive some information from it.
|
<UA,RA,R> R |
syncUpdate(net.openhft.chronicle.core.util.SerializableUpdaterWithArg<MapView<K,MV,V>,UA> updateFunction,
UA ua,
net.openhft.chronicle.core.util.SerializableBiFunction<MapView<K,MV,V>,RA,R> returnFunction,
RA ra)
Apply a function to update an Updatable and apply a seconf function to derive some information from it.
|
<T,RT,R> R |
syncUpdateKey(K key,
net.openhft.chronicle.core.util.SerializableBiFunction<V,T,V> updateFunction,
T updateArgument,
net.openhft.chronicle.core.util.SerializableBiFunction<V,RT,R> returnFunction,
RT returnArgument)
Apply a function to update the state of a visible, and apply a function to return a result object synchronously.
|
<R> R |
syncUpdateKey(K key,
net.openhft.chronicle.core.util.SerializableFunction<V,V> updateFunction,
net.openhft.chronicle.core.util.SerializableFunction<V,R> returnFunction)
Apply a function to update the state of a visible, and apply a function to return a result object synchronously.
|
asset, checkKey, checkValue, clear, containsKey, entrySet, get, getAndPut, getAndRemove, getUsing, isEmpty, keySet, keyType, longSize, put, putAll, registerKeySubscriber, registerSubscriber, registerTopicSubscriber, remove, set, toString, underlying, values, valueTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitapply, keyedView, sizeforEach, getOrDefaultandThen, compose, identitypublic RemoteMapView(@NotNull
RequestContext context,
Asset asset,
KeyValueStore<K,MV,V> kvStore)
public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class VanillaMapView<K,MV,V>public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function)
public boolean equals(Object o)
public Reference<V> referenceFor(K key)
MapViewreferenceFor in interface MapView<K,MV,V>referenceFor in class VanillaMapView<K,MV,V>key - to bind the reference topublic int hashCode()
@Nullable public V putIfAbsent(@NotNull K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>putIfAbsent in class VanillaMapView<K,MV,V>public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)
public V computeIfPresent(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
public V compute(K key, java.util.function.BiFunction<? super K,? super V,? extends V> remappingFunction)
public V merge(K key, V value, java.util.function.BiFunction<? super V,? super V,? extends V> remappingFunction)
public <A,R> R applyTo(@NotNull
net.openhft.chronicle.core.util.SerializableBiFunction<MapView<K,MV,V>,A,R> function,
A arg)
UpdatableR - return type.function - to apply to derive data from this Updatable.public <A> void asyncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableUpdaterWithArg<MapView<K,MV,V>,A> updateFunction,
A arg)
UpdatableupdateFunction - to apply.public <UA,RA,R> R syncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableUpdaterWithArg<MapView<K,MV,V>,UA> updateFunction,
UA ua,
@NotNull
net.openhft.chronicle.core.util.SerializableBiFunction<MapView<K,MV,V>,RA,R> returnFunction,
RA ra)
UpdatableupdateFunction - to apply the update.returnFunction - to derive some datapublic <R> R applyTo(@NotNull
net.openhft.chronicle.core.util.SerializableFunction<MapView<K,MV,V>,R> function)
UpdatableR - return type.function - to apply to derive data from this Updatable.public void asyncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableUpdater<MapView<K,MV,V>> updateFunction)
UpdatableupdateFunction - to apply.public <R> R syncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableUpdater<MapView<K,MV,V>> updateFunction,
@NotNull
net.openhft.chronicle.core.util.SerializableFunction<MapView<K,MV,V>,R> returnFunction)
UpdatableupdateFunction - to apply the update.returnFunction - to derive some datapublic <R> R applyToKey(K key, @NotNull net.openhft.chronicle.core.util.SerializableFunction<V,R> function)
KeyedVisitableR - data type to return.key - to visit within this collection.function - to apply e.g. call a getterpublic <T,R> R applyToKey(K key, @NotNull net.openhft.chronicle.core.util.SerializableBiFunction<V,T,R> function, T argument)
KeyedVisitableT - type of the argumentR - type of the return value.key - to visit within this collection.function - to applyargument - for the functions use.public void asyncUpdateKey(K key, @NotNull net.openhft.chronicle.core.util.SerializableFunction<V,V> updateFunction)
KeyedVisitablekey - to visit within this collection.updateFunction - to update the state of the visitiable.public <T> void asyncUpdateKey(K key, @NotNull net.openhft.chronicle.core.util.SerializableBiFunction<V,T,V> updateFunction, T argument)
KeyedVisitableT - type of the argumentkey - to update within this collectionupdateFunction - to update the state of the visitiable.argument - for the functions use.public <R> R syncUpdateKey(K key, @NotNull net.openhft.chronicle.core.util.SerializableFunction<V,V> updateFunction, @NotNull net.openhft.chronicle.core.util.SerializableFunction<V,R> returnFunction)
KeyedVisitableR - data type to return.key - to update within this collection.updateFunction - update to apply to the value.returnFunction - derive an object to returnpublic <T,RT,R> R syncUpdateKey(K key, @NotNull net.openhft.chronicle.core.util.SerializableBiFunction<V,T,V> updateFunction, @Nullable T updateArgument, @NotNull net.openhft.chronicle.core.util.SerializableBiFunction<V,RT,R> returnFunction, @Nullable RT returnArgument)
KeyedVisitableR - data type to return.key - to update within this collectionupdateFunction - update to apply to the value.updateArgument - for the update function to use.returnFunction - derive an object to returnreturnArgument - for the return value function to useCopyright © 2015. All rights reserved.