public interface Updatable<E>
Modifier and Type | Method and Description |
---|---|
default <A,R> R |
applyTo(@NotNull 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(@NotNull 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(@NotNull net.openhft.chronicle.core.util.SerializableUpdater<E> updateFunction)
Update an Updatable potentially asynchronously.
|
default <A> void |
asyncUpdate(@NotNull net.openhft.chronicle.core.util.SerializableUpdaterWithArg<E,A> updateFunction,
A arg)
Update an Updatable potentially asynchronously.
|
default <R> R |
syncUpdate(@NotNull net.openhft.chronicle.core.util.SerializableUpdater<E> updateFunction,
@NotNull net.openhft.chronicle.core.util.SerializableFunction<E,R> returnFunction)
Apply a function to update an Updatable and apply a second function to derive some information from it.
|
default <UA,RA,R> R |
syncUpdate(@NotNull net.openhft.chronicle.core.util.SerializableUpdaterWithArg<E,UA> updateFunction,
UA updateArgument,
@NotNull net.openhft.chronicle.core.util.SerializableBiFunction<E,RA,R> returnFunction,
RA returnArgument)
Apply a function to update an Updatable and apply a second function to derive some information from it.
|
@Nullable default <R> R applyTo(@NotNull @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 @NotNull net.openhft.chronicle.core.util.SerializableUpdater<E> updateFunction)
updateFunction
- to apply.@Nullable default <R> R syncUpdate(@NotNull @NotNull net.openhft.chronicle.core.util.SerializableUpdater<E> updateFunction, @NotNull @NotNull net.openhft.chronicle.core.util.SerializableFunction<E,R> returnFunction)
R
- data type to return.updateFunction
- to apply the update.returnFunction
- to derive some data@Nullable default <A,R> R applyTo(@NotNull @NotNull net.openhft.chronicle.core.util.SerializableBiFunction<E,A,R> function, A arg)
R
- return type.A
- argument type.function
- to apply to derive data from this Updatable.arg
- argument to applydefault <A> void asyncUpdate(@NotNull @NotNull net.openhft.chronicle.core.util.SerializableUpdaterWithArg<E,A> updateFunction, A arg)
A
- argument type.arg
- argument to applyupdateFunction
- to apply.@Nullable default <UA,RA,R> R syncUpdate(@NotNull @NotNull net.openhft.chronicle.core.util.SerializableUpdaterWithArg<E,UA> updateFunction, UA updateArgument, @NotNull @NotNull net.openhft.chronicle.core.util.SerializableBiFunction<E,RA,R> returnFunction, RA returnArgument)
UA
- update argument typeRA
- return argument typeR
- return typeupdateFunction
- to apply the update.updateArgument
- update argumentreturnFunction
- to derive some datareturnArgument
- return argumentCopyright © 2021. All rights reserved.