SimpleMapEvent

sealed interface SimpleMapEvent<out K : Any, out V : Any> : Serializable(source)

Events representing a mutation to a Map.

Unlike MapEvent.EntryEvent - EntryEvent does not carry the old value, and as such Flows cannot be conflated via conflateKeys.

The primary usecase of this is for creating a Flow of Maps from a series of events via runningFoldToMap.

This does not support maps with null values or keys, consider using java.util.Optional if this is required.

Inheritors

Types

Link copied to clipboard
sealed interface EntryEvent<out K : Any, out V : Any> : SimpleMapEvent<K, V>

Mutation event for a specific entry.

Link copied to clipboard

Indicates that a consistent view of the map has been emitted and only updates will be seen from now on.