DefaultAMQPConnection

open class DefaultAMQPConnection(val config: AMQPConfig, val messageListeningScope: CoroutineScope) : AMQPConnection

Constructors

Link copied to clipboard
constructor(config: AMQPConfig, messageListeningScope: CoroutineScope)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

A flow of closed responses from the connection.

Link copied to clipboard
open override val config: AMQPConfig

The configuration of the connection.

Link copied to clipboard
open override val connectionClosed: CompletableDeferred<AMQPException.ConnectionClosed>

A deferred that completes when the connection is closed.

Link copied to clipboard
val connectionResponses: MutableSharedFlow<AMQPResponse>
Link copied to clipboard
val messageListeningScope: CoroutineScope
Link copied to clipboard

A flow of opened responses from the connection.

Link copied to clipboard
open override var state: ConnectionState

The connection state.

Functions

Link copied to clipboard
open suspend override fun close(reason: String, code: UShort): AMQPResponse.Connection.Closed

Closes the connection.

Link copied to clipboard
open suspend override fun openChannel(): AMQPChannel

Opens a new channel.

Link copied to clipboard
open suspend override fun sendHeartbeat()

Sends a heartbeat frame.

Link copied to clipboard
open suspend override fun write(vararg frames: Frame)

Internal API to write raw frames to the connection.

open suspend override fun write(bytes: ByteArray)

Internal API to write raw bytes to the connection.

Link copied to clipboard
inline suspend fun <T : AMQPResponse> writeAndWaitForResponse(vararg frames: Frame): T