AMQPConnection.ts overview
Since v0.1.0
Exports Grouped by Category
Layers
layer
Signature
declare const layer: (
url: internal.ConnectionUrl,
options?: AMQPConnectionOptions
) => Layer.Layer<AMQPConnection, AMQPError.AMQPConnectionError>
Since v0.1.0
constructors
make
Signature
declare const make: (
url: internal.ConnectionUrl,
options?: AMQPConnectionOptions
) => Effect.Effect<AMQPConnection, AMQPError.AMQPConnectionError, Scope.Scope>
Since v0.1.0
models
AMQPConnection (interface)
Signature
export interface AMQPConnection {
readonly [TypeId]: TypeId
readonly createChannel: Effect.Effect<Channel, AMQPError.AMQPConnectionError, never>
readonly createConfirmChannel: Effect.Effect<ConfirmChannel, AMQPError.AMQPConnectionError, never>
readonly serverProperties: Effect.Effect<AMQPConnectionServerProperties, AMQPError.AMQPConnectionError, never>
readonly updateSecret: (
...params: Parameters<ChannelModel["updateSecret"]>
) => Effect.Effect<void, AMQPError.AMQPConnectionError, never>
/** @internal */
readonly close: (options: internal.CloseConnectionOptions) => Effect.Effect<void, never, never>
}
Since v0.1.0
AMQPConnectionOptions (type alias)
Signature
type AMQPConnectionOptions = {
/**
* Schedule for retrying connection after disconnection.
* Default: retry forever with 1 second delay between attempts.
*/
retryConnectionSchedule?: Schedule.Schedule<unknown, AMQPError.AMQPConnectionError>
/**
* Timeout for waiting on an existing connection to become available
* (used by createChannel, serverProperties, etc. during reconnection).
* Default: 5 seconds.
*/
waitConnectionTimeout?: Duration.Input
/**
* Timeout for establishing a new connection. This applies to both the
* TCP socket connection and the AMQP handshake. If the connection is
* not established within this time, an AMQPConnectionError is thrown.
* Default: 10 seconds.
*
* @since 0.7.0
*/
connectionTimeout?: Duration.Input
}
Since v0.4.0
AMQPConnectionServerProperties (type alias)
Signature
type AMQPConnectionServerProperties = ServerProperties & {
hostname: string | undefined
port: string | undefined
}
Since v0.2.5
tags
AMQPConnection
Signature
declare const AMQPConnection: Context.Service<AMQPConnection, AMQPConnection>
Since v0.1.0
type ids
TypeId
Signature
declare const TypeId: unique symbol
Since v0.1.0
TypeId (type alias)
Signature
type TypeId = typeof TypeId
Since v0.1.0