Platforms to show: All Mac Windows Linux Cross-Platform
Back to RabbitMQConnectionMBS class.
RabbitMQConnectionMBS.ClientProperties as Dictionary
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Get the properties that were passed to the broker on connection.
(Read only property)
RabbitMQConnectionMBS.DataInBuffer as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Can be used to see if there is data still in the buffer, if so calling SimpleWaitFrame will not immediately enter a blocking read.
Returns true if there is data in the receive buffer, false otherwise.
(Read only property)
RabbitMQConnectionMBS.FramesEnqueued as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Checks to see if there are any frame objects buffered by the connection object. Having one or more frames buffered means that SimpleWaitFrame() will return a frame without potentially blocking on a read() call.
Returns true if there are frames enqueued, false otherwise.
(Read only property)
RabbitMQConnectionMBS.Handle as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
(Read and Write property)
RabbitMQConnectionMBS.HandshakeTimeout as Double
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Login performs the login handshake with the broker. This function sets the timeout associated with completing this operation from the client side.
The timeout must be set before Login is called to change from the default timeout.
Note that the RabbitMQ broker has a configurable timeout for completing the login handshake, the default is 10 seconds. rabbitmq-c has a default of 12 seconds.
(Read and Write property)
RabbitMQConnectionMBS.Heartbeat as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The number of seconds between heartbeats is set when connection negotiation takes place in Login.
Returns the number of seconds between heartbeats.
(Read only property)
RabbitMQConnectionMBS.MaximumChannel as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The maximum number of channels is set when connection negotiation takes
place in Login.
Returns the maximum number of channels. 0 if there is no limit.
(Read only property)
RabbitMQConnectionMBS.MaximumFrameSize as Integer
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The maximum size of an frame is set when connection negotiation takes place in Login.
Return the maximum size in bytes of an frame.
(Read only property)
RabbitMQConnectionMBS.RPCReply as RabbitMQRPCReplyMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
The API methods corresponding to most synchronous AMQP methods return a pointer to the decoded method result. Upon error, they return nil, and we need some way of discovering what, if anything,
went wrong. RPCReply() returns the most recent RabbitMQRPCReplyMBS instance corresponding to such an API operation for the given connection.
Only use it for operations that do not themselves return RabbitMQRPCReplyMBS; operations that do return RabbitMQRPCReplyMBS generally do NOT update this per-connection-global RabbitMQRPCReplyMBS instance.
Returns the most recent RabbitMQRPCReplyMBS object:
- Reply.Type = kResponseNormal. Login completed successfully
- Reply.Type = kResponseLibraryException. In most cases errors from the broker when logging in will be represented by the broker closing the socket. In this case r.libraryError will be set to kStatusConnectionClosed. This error can represent a number of error conditions including: invalid vhost, authentication failure.
- Reply.Type = kResponseServerException. The broker returned an exception:
- If Reply.MethodId = kChannelCloseMethod a channel exception occurred, check decoded properties to see details of the exception. The client should SendMethod() a kChannelCloseOkMethod. The channel must be re-opened before it can be used again. Any resources associated with the channel (auto-delete exchanges, auto-delete queues, consumers) are invalid and must be recreated before attempting to use them again.
- If Reply.MethodId = kConnectionCloseMethod a connection exception occurred, check decoded properties to see details of the exception. The client SendMethod() a kConnectionCloseOkMethod and disconnect from the broker.
Some examples using this property:
- /MongoDB/RabbitMQ/amqp_bind
- /MongoDB/RabbitMQ/amqp_consumer
- /MongoDB/RabbitMQ/amqp_exchange_declare
- /MongoDB/RabbitMQ/amqp_listen
- /MongoDB/RabbitMQ/amqp_listenq
- /MongoDB/RabbitMQ/amqp_producer
- /MongoDB/RabbitMQ/amqp_rpc_sendstring_client
- /MongoDB/RabbitMQ/amqp_sendstring
- /MongoDB/RabbitMQ/amqp_unbind
- /MongoDB/RabbitMQ/RabbitMQTutorial/RabbitMQTutorial
RabbitMQConnectionMBS.RPCTimeout as Double
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| property | RabbitMQ | MBS MongoDB Plugin | 21.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Get or set the RPC timeout.
Sets the timeout for any RPC-style AMQP command (e.g., QueueDeclare).
This timeout may be changed at any time by calling this function with a new
timeout. The timeout applies individually to each RPC that is made.
The default value is 0, or an infinite timeout.
When an RPC times out, the function will return an error kStatusTimeout,
and the connection will be closed.
RPC-timeouts are an advanced feature intended to be used to detect
dead connections quickly when the rabbitmq-c implementation of heartbeats
does not work. Do not use RPC timeouts unless you understand the implications
of doing so.
(Read and Write property)
The items on this page are in the following plugins: MBS MongoDB Plugin.