StompConfig

class StompConfig

Configuration for the STOMP client.

Constructors

Link copied to clipboard
fun StompConfig()

Properties

Link copied to clipboard
var autoContentLength: Boolean = true

Whether to automatically compute and add the content-length header in sent frames.

Link copied to clipboard
var autoReceipt: Boolean = false

Whether to automatically attach a receipt header to the sent frames in order to track receipts.

Link copied to clipboard
var connectionTimeout: Duration

Defines how long to wait for the websocket+STOMP connection to be established before throwing an exception.

Link copied to clipboard
var connectWithStompCommand: Boolean = false

Whether to use the STOMP command instead of CONNECT to establish the connection.

Link copied to clipboard
var defaultSessionCoroutineContext: CoroutineContext

An additional coroutine context used for the collection and decoding of the STOMP frames within StompSessions created by this client.

Link copied to clipboard
var disconnectTimeout: Duration

Like receiptTimeout but only for the receipt of the DISCONNECT frame. This is ignored if gracefulDisconnect is disabled.

Link copied to clipboard
var gracefulDisconnect: Boolean = true
Link copied to clipboard
var heartBeat: HeartBeat

The HeartBeat to request for the STOMP sessions.

Link copied to clipboard
var heartBeatTolerance: HeartBeatTolerance

Defines tolerance for heart beats.

Link copied to clipboard
var instrumentation: KrossbowInstrumentation? = null

A set of hooks that are called in different places of the internal execution of Krossbow. The instrumentation can be used for monitoring, logging or debugging purposes.

Link copied to clipboard
var receiptTimeout: Duration

Defines how long to wait for a RECEIPT frame from the server before throwing a LostReceiptException. Only crashes when a receipt header was actually present in the sent frame (and thus a RECEIPT was expected). Such header is always present if autoReceipt is enabled.

Link copied to clipboard
var subscriptionCompletionTimeout: Duration

When the session is disconnected or when an error occurs, subscription flows complete or throw an exception. This timeout defines how long the STOMP session will wait for subscribers to reach this completion/error before cancelling them along with internal coroutines.

Sources

Link copied to clipboard