RestWebModelClient

class RestWebModelClient @JvmOverloads constructor(var baseUrl: String = defaultUrl, authTokenProvider: () -> String?? = null, initialConnectionListeners: List<ConnectionListener> = emptyList(), providedClient: HttpClient? = null) : IModelClient

We need to specify the connection listeners right into the constructor because connection is started in the constructor.

Constructors

Link copied to clipboard
constructor(baseUrl: String = defaultUrl, authTokenProvider: () -> String?? = null, initialConnectionListeners: List<ConnectionListener> = emptyList(), providedClient: HttpClient? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
inner class PollingListener(val key: String, val keyListener: IKeyListener)

Properties

Link copied to clipboard
open override val asyncStore: IKeyValueStore
Link copied to clipboard
Link copied to clipboard
open override val clientId: Int
Link copied to clipboard
open override val idGenerator: IIdGenerator
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun dispose()
Link copied to clipboard
open operator override fun get(key: String): String?
Link copied to clipboard
open suspend override fun getA(key: String): String?
Link copied to clipboard
open override fun getAll(keys: Iterable<String>): Map<String, String?>
Link copied to clipboard
suspend fun getAllA(keys: Iterable<String>): Map<String, String?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getEmailA(): String
Link copied to clipboard
open override fun getIfCached(key: String): String?
Link copied to clipboard
open override fun getPendingSize(): Int
Link copied to clipboard
open override fun listen(key: String, listener: IKeyListener)
Link copied to clipboard
Link copied to clipboard
open override fun prefetch(key: String)
Link copied to clipboard
open override fun put(key: String, value: String?)
Link copied to clipboard
suspend fun putA(key: String, value: String?)
Link copied to clipboard
open override fun putAll(entries: Map<String, String?>)
Link copied to clipboard
suspend fun putAllA(entries_: Map<String, String?>)
Link copied to clipboard
fun reconnect()
Link copied to clipboard
open override fun removeListener(key: String, listener: IKeyListener)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String