combine

fun <T1 : Any, T2 : Any, R : Any> combine(    replica1: Replica<T1>,     replica2: Replica<T2>,     transform: (T1, T2) -> R): Replica<R>

Combines two replicas to a single replica. Data is merged only when all replicas have loaded data.

Parameters

replica1

first replica

replica2

second replica

transform

function that merges replica data together.


fun <T1 : Any, T2 : Any, T3 : Any, R : Any> combine(    replica1: Replica<T1>,     replica2: Replica<T2>,     replica3: Replica<T3>,     transform: (T1, T2, T3) -> R): Replica<R>

Combines three replicas to a single replica. Data is merged only when all replicas have loaded data.

Parameters

replica1

first replica

replica2

second replica

replica3

third replica

transform

function that merges replica data together.


fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any, R : Any> combine(    replica1: Replica<T1>,     replica2: Replica<T2>,     replica3: Replica<T3>,     replica4: Replica<T4>,     transform: (T1, T2, T3, T4) -> R): Replica<R>

Combines four replicas to a single replica. Data is merged only when all replicas have loaded data.

Parameters

replica1

first replica

replica2

second replica

replica3

third replica

replica4

fourth replica

transform

function that merges replica data together.


fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any, T5 : Any, R : Any> combine(    replica1: Replica<T1>,     replica2: Replica<T2>,     replica3: Replica<T3>,     replica4: Replica<T4>,     replica5: Replica<T5>,     transform: (T1, T2, T3, T4, T5) -> R): Replica<R>

Combines five replicas to a single replica. Data is merged only when all replicas have loaded data.

Parameters

replica1

first replica

replica2

second replica

replica3

third replica

replica4

fourth replica

replica5

fifth replica

transform

function that merges replica data together.