public interface Updatable<E>
| Modifier and Type | Method and Description |
|---|---|
default <A,R> R |
applyTo(net.openhft.chronicle.core.util.SerializableBiFunction<E,A,R> function,
A arg)
Apply a function to an Updatable which is assumed to not change the visited in any significant way.
|
default <R> R |
applyTo(net.openhft.chronicle.core.util.SerializableFunction<E,R> function)
Apply a function to an Updatable which is assumed to not change the visited in any significant way.
|
default void |
asyncUpdate(net.openhft.chronicle.core.util.SerializableUpdater<E> updateFunction)
Update an Updatable potentially asynchronously.
|
default <A> void |
asyncUpdate(net.openhft.chronicle.core.util.SerializableUpdaterWithArg<E,A> updateFunction,
A arg)
Update an Updatable potentially asynchronously.
|
default <R> R |
syncUpdate(net.openhft.chronicle.core.util.SerializableUpdater<E> updateFunction,
net.openhft.chronicle.core.util.SerializableFunction<E,R> returnFunction)
Apply a function to update an Updatable and apply a seconf function to derive some information from it.
|
default <UA,RA,R> R |
syncUpdate(net.openhft.chronicle.core.util.SerializableUpdaterWithArg<E,UA> updateFunction,
UA ua,
net.openhft.chronicle.core.util.SerializableBiFunction<E,RA,R> returnFunction,
RA ra)
Apply a function to update an Updatable and apply a seconf function to derive some information from it.
|
default <R> R applyTo(@NotNull
net.openhft.chronicle.core.util.SerializableFunction<E,R> function)
R - return type.function - to apply to derive data from this Updatable.default void asyncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableUpdater<E> updateFunction)
updateFunction - to apply.default <R> R syncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableUpdater<E> updateFunction,
@NotNull
net.openhft.chronicle.core.util.SerializableFunction<E,R> returnFunction)
updateFunction - to apply the update.returnFunction - to derive some datadefault <A,R> R applyTo(@NotNull
net.openhft.chronicle.core.util.SerializableBiFunction<E,A,R> function,
A arg)
R - return type.function - to apply to derive data from this Updatable.default <A> void asyncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableUpdaterWithArg<E,A> updateFunction,
A arg)
updateFunction - to apply.default <UA,RA,R> R syncUpdate(@NotNull
net.openhft.chronicle.core.util.SerializableUpdaterWithArg<E,UA> updateFunction,
UA ua,
@NotNull
net.openhft.chronicle.core.util.SerializableBiFunction<E,RA,R> returnFunction,
RA ra)
updateFunction - to apply the update.returnFunction - to derive some dataCopyright © 2015. All rights reserved.