Object -
rabbitmq
:
Connection
Represents a single network connection to the RabbitMQ broker.
Constructor
__init
(ConnectionConfiguration connectionConfiguration)
- connectionConfiguration ConnectionConfiguration
-
Holds connection parameters required to initialize the
Connection
.
Methods
Closes the RabbitMQ Connection
and all it's Channel
s.
It waits with a provided timeout for all the close operations to complete.
When timeout is reached the socket is forced to close.
Aborts the RabbitMQ Connection
and all its Channel
s.
Forces the Connection
to close and waits for all the close operations to complete. When timeout is reached
the socket is forced to close. Any encountered exceptions in the close operations are silently discarded.
Checks whether close
was already called.
Closes the RabbitMQ Connection
and all it's Channel
s.
It waits with a provided timeout for all the close operations to complete.
When timeout is reached the socket is forced to close.
Parameters
- closeCode int? (default ())
-
The close code (For information, go to the "Reply Codes" section in the [AMQP 0-9-1 specification] (#https://www.rabbitmq.com/resources/specs/amqp0-9-1.pdf)).
- closeMessage string? (default ())
-
A message indicating the reason for closing the connection.
- timeoutInMillis int? (default ())
-
Timeout (in milliseconds) for completing all the close-related operations. Use -1 for infinity.
-
Return Type
(Error?) An error if an I/O problem is encountered.
Aborts the RabbitMQ Connection
and all its Channel
s.
Forces the Connection
to close and waits for all the close operations to complete. When timeout is reached
the socket is forced to close. Any encountered exceptions in the close operations are silently discarded.
Parameters
- closeCode int? (default ())
-
The close code (For information, go to the "Reply Codes" section in the [AMQP 0-9-1 specification] (#https://www.rabbitmq.com/resources/specs/amqp0-9-1.pdf)).
- closeMessage string? (default ())
-
A message indicating the reason for closing the connection.
- timeoutInMillis int? (default ())
-
Timeout (in milliseconds) for completing all the close-related operations. Use -1 for infinity.