Skip to main content

TransactionUpdate

sealed class TransactionUpdate : Disposable

An item delivered by a subscription.

A subscription recovers from a lost connection or from falling behind the server on its own, so those interruptions are delivered as updates rather than raised as errors: a caller that does not care about the gap can ignore them and keep reading.

Inheritors​

Transaction
Interrupted

Types​

NameSummary
Interrupteddata class Interrupted(val message: String) : TransactionUpdate
Delivery was interrupted and has recovered — the connection dropped, or the server dropped payloads because this client could not keep up. Items in the gap may have been missed.
Transactiondata class Transaction(val transaction: SignedTransaction) : TransactionUpdate

Functions​

NameSummary
destroyopen override fun destroy()

Interrupted​

data class Interrupted(val message: String) : TransactionUpdate

Delivery was interrupted and has recovered — the connection dropped, or the server dropped payloads because this client could not keep up. Items in the gap may have been missed.

Constructors​

Interruptedconstructor(message: String)

Properties​

NameSummary
messageval message: String

Functions​

NameSummary
destroyopen override fun destroy()

Transaction​

data class Transaction(val transaction: SignedTransaction) : TransactionUpdate

Constructors​

Transactionconstructor(transaction: SignedTransaction)

Properties​

NameSummary
transactionval transaction: SignedTransaction

Functions​

NameSummary
destroyopen override fun destroy()