Package-level declarations

Types

Link copied to clipboard
class LocalStorageCheckpointer<State>(serializer: StateSerializer<State>, keyPrefix: String = "telar.checkpoint.", maxHistory: Int = 1) : Checkpointer<State>

A persistent Checkpointer for apps that run in a browser. It stores the checkpoints of each thread in the page's localStorage, so a paused run is still there after the page is reloaded or the browser is closed.

Link copied to clipboard
class LocalStorageException(val threadId: String, message: String, cause: Throwable? = null) : TelarException

The browser refused to read or write localStorage for the checkpoint of threadId: the storage of the page is full, or the page may not use it. The error of the browser is the cause.

Link copied to clipboard
class LocalStorageStore(keyPrefix: String = "telar.store.", clock: Clock = Clock.System) : Store

A persistent Store for apps that run in a browser. It keeps each item in an entry of the page's localStorage, so what an agent remembers is still there after the page is reloaded or the browser is closed.

Link copied to clipboard
class LocalStorageStoreException(val namespace: List<String>, val key: String?, message: String, cause: Throwable? = null) : TelarException

The browser refused to read or write localStorage for the item under key in namespace: the storage of the page is full, or the page may not use it. key is null when the store read the keys of its entries. The error of the browser is the cause.