FusClient

Types

Link copied to clipboard
class Builder<E, R>

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun close()

Closes the client and all of its components. Must be called to give buffered events a chance to be flushed and sent.

Link copied to clipboard
Link copied to clipboard

Pushes buffered events into the queue and sends everything the queue holds right away. Prefer scheduleSend unless the application manages the sending schedule itself.

Link copied to clipboard
open override fun queueEvent(event: E)

Records a single event.

Link copied to clipboard

Starts periodically updating the remote configuration and the validation metadata in the background. Use updateMetadata instead to update once, on a schedule you manage yourself.

Link copied to clipboard
fun scheduleSend(): Job

Starts periodically sending batched events in the background. Sends only events that already reached the queue; use flushEvents to also push out buffered events and send once.

Link copied to clipboard

Updates the remote configuration and the validation metadata once, without retries. Prefer scheduleMetadataUpdate unless the application manages the update schedule itself.