openOrCreate

Open existing SyncMapJava by unique name or create a new one if specified name does not exist.

Return

CancellationToken which allows to cancel network request.

Parameters

uniqueName

Unique name to find existing map or to assign to new map upon creation.

output

Listener that will receive opened or created SyncMapJava in its onSuccess() callback or any error in onFailure() callback.


open fun openOrCreate(uniqueName: String, ttlSeconds: Long, output: SuccessListener<SyncMapJava>): CancellationToken

Open existing SyncMapJava by unique name or create a new one if specified name does not exist.

Return

CancellationToken which allows to cancel network request.

Parameters

uniqueName

Unique name to find existing map or to assign to new map upon creation.

ttlSeconds

Time to live in seconds from now.

output

Listener that will receive opened or created SyncMapJava in its onSuccess() callback or any error in onFailure() callback.


abstract fun openOrCreate(uniqueName: String, ttlSeconds: Long, listener: SyncMapJava.Listener?, output: SuccessListener<SyncMapJava>): CancellationToken

Open existing SyncMapJava by unique name or create a new one if specified name does not exist.

Return

CancellationToken which allows to cancel network request.

Parameters

uniqueName

Unique name to find existing map or to assign to new map upon creation.

ttlSeconds

Time to live in seconds from now.

listener

SyncMapJava.Listener that will receive notifications regarding this map.

output

Listener that will receive opened or created SyncMapJava in its onSuccess() callback or any error in onFailure() callback.