Maps Java
interface MapsJava
Functions
Link copied to clipboard
open fun create(uniqueName: String?, ttlSeconds: Long, output: SuccessListener<SyncMapJava>): CancellationToken
abstract fun create(uniqueName: String?, ttlSeconds: Long, listener: SyncMapJava.Listener?, output: SuccessListener<SyncMapJava>): CancellationToken
Create new SyncMapJava object.
Link copied to clipboard
abstract fun getMapItem(mapSidOrUniqueName: String, itemKey: String, callback: SuccessListener<SyncMapJava.Item?>): CancellationToken
Retrieve Item from the SyncMapJava without opening it.
Link copied to clipboard
abstract fun mutateMapItem(mapSidOrUniqueName: String, itemKey: String, mutator: SyncMutator, callback: SuccessListener<SyncMapJava.Item>): CancellationToken
Mutate value of the SyncMapJava.Item using provided Mutator function.
Link copied to clipboard
abstract fun mutateMapItemWithTtl(mapSidOrUniqueName: String, itemKey: String, ttlSeconds: Long, mutator: SyncMutator, callback: SuccessListener<SyncMapJava.Item>): CancellationToken
Mutate value of the SyncMapJava.Item using provided Mutator function.
Link copied to clipboard
open fun openExisting(sidOrUniqueName: String, output: SuccessListener<SyncMapJava>): CancellationToken
abstract fun openExisting(sidOrUniqueName: String, listener: SyncMapJava.Listener?, output: SuccessListener<SyncMapJava>): CancellationToken
Open existing SyncMapJava by SID or unique name.
Link copied to clipboard
open fun openOrCreate(uniqueName: String, ttlSeconds: Long, output: SuccessListener<SyncMapJava>): CancellationToken
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.
Link copied to clipboard
Retrieve all items from the SyncMapJava without opening it.
open fun queryMapItems(mapSidOrUniqueName: String, startKey: String): SyncIteratorJava<SyncMapJava.Item>
open fun queryMapItems(mapSidOrUniqueName: String, startKey: String, includeStartKey: Boolean): SyncIteratorJava<SyncMapJava.Item>
open fun queryMapItems(mapSidOrUniqueName: String, startKey: String?, includeStartKey: Boolean, queryOrder: <Error class: unknown class>): SyncIteratorJava<SyncMapJava.Item>
open fun queryMapItems(mapSidOrUniqueName: String, startKey: String?, includeStartKey: Boolean, queryOrder: <Error class: unknown class>, pageSize: Int): SyncIteratorJava<SyncMapJava.Item>
abstract fun queryMapItems(mapSidOrUniqueName: String, startKey: String?, includeStartKey: Boolean, queryOrder: <Error class: unknown class>, pageSize: Int, useCache: Boolean): SyncIteratorJava<SyncMapJava.Item>
Retrieve items from the SyncMapJava without opening it.
Link copied to clipboard
Remove SyncMapJava without opening it.
Link copied to clipboard
abstract fun removeMapItem(mapSidOrUniqueName: String, itemKey: String, callback: SuccessListener<Unit>): CancellationToken
Remove Item from the SyncMapJava without opening it.
Link copied to clipboard
abstract fun setMapItem(mapSidOrUniqueName: String, itemKey: String, jsonData: String, callback: SuccessListener<SyncMapJava.Item>): CancellationToken
Set Item in the SyncMapJava without opening it.
Link copied to clipboard
abstract fun setMapItemWithTtl(mapSidOrUniqueName: String, itemKey: String, jsonData: String, ttlSeconds: Long, callback: SuccessListener<SyncMapJava.Item>): CancellationToken
Set Item in the SyncMapJava without opening it.
Link copied to clipboard
abstract fun setTtl(sidOrUniqueName: String, ttlSeconds: Long, callback: SuccessListener<Unit>): CancellationToken
Set time to live for SyncMapJava without opening it.