All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.me.aartikov.replica.keyed.KeyedReplicaState.kt Maven / Gradle / Ivy

package me.aartikov.replica.keyed

/**
 * State of [KeyedPhysicalReplica].
 */
data class KeyedReplicaState(
    val replicaCount: Int,
    val replicaWithObserversCount: Int,
    val replicaWithActiveObserversCount: Int
) {

    companion object {
        val Empty = KeyedReplicaState(
            replicaCount = 0,
            replicaWithObserversCount = 0,
            replicaWithActiveObserversCount = 0
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy