EphemeralEntry

@Serializable
class EphemeralEntry<V>(val value: V?, val clock: Long)

An entry in an EphemeralMap: a nullable value tagged with a per-replica monotonic clock.

  • value != null — the replica is present.

  • value == null — the replica has departed gracefully (Yjs pattern: null-state + incremented clock). Any peer that merges a departure with a higher clock than a previously-seen presence entry will hide the replica.

The clock is used only for ordering within a single replica's slot — two replicas never compare clocks across slots, so cross-replica clock skew does not affect correctness.

Constructors

Link copied to clipboard
constructor(value: V?, clock: Long)

Properties

Link copied to clipboard
val clock: Long
Link copied to clipboard
val value: V?

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String