TsgcWSPClient_AMQP › Methods

TsgcWSPClient_AMQP Methods

Public methods grouped by purpose, followed by the full alphabetical list.

Connection

NameDescription
CloseCloses the AMQP connection. Overloaded: clean close with no arguments, or explicit close passing reply-code/text/class/method.
CloseExCloses the AMQP connection synchronously and returns True when the broker acknowledged the close.

Channels

NameDescription
OpenChannelOpens a new AMQP channel with the specified name (channel.open).
OpenChannelExOpens a new AMQP channel synchronously, waiting for channel.open-ok.
CloseChannelCloses an AMQP channel (channel.close).
CloseChannelExCloses an AMQP channel synchronously and returns True when the broker acknowledged the close.
EnableChannelResumes message flow on a previously-paused channel (channel.flow active=true).
EnableChannelExResumes message flow on a channel synchronously and returns True on broker confirmation.
DisableChannelPauses message flow on a channel (channel.flow active=false).
DisableChannelExPauses message flow on a channel synchronously and returns True on broker confirmation.

Exchanges

NameDescription
DeclareExchangeDeclares an exchange on the broker (exchange.declare).
DeclareExchangeExDeclares an exchange synchronously, waiting for exchange.declare-ok.
DeleteExchangeDeletes an exchange (exchange.delete).
DeleteExchangeExDeletes an exchange synchronously and returns True on exchange.delete-ok.

Queues

NameDescription
DeclareQueueDeclares a queue on the broker (queue.declare).
DeclareQueueExDeclares a queue synchronously, waiting for queue.declare-ok.
BindQueueBinds a queue to an exchange using a routing key (queue.bind).
BindQueueExBinds a queue to an exchange and waits for the broker confirmation, returning success as a Boolean.
UnBindQueueRemoves a binding between a queue and an exchange (queue.unbind).
UnBindQueueExRemoves a binding synchronously and returns True on queue.unbind-ok.
PurgeQueueRemoves all pending messages from a queue (queue.purge).
PurgeQueueExPurges a queue synchronously and returns True on queue.purge-ok.
DeleteQueueDeletes a queue (queue.delete).
DeleteQueueExDeletes a queue synchronously and returns True on queue.delete-ok.

Consumers

NameDescription
ConsumeRegisters a consumer on a queue (basic.consume).
ConsumeExRegisters a consumer synchronously and returns True on basic.consume-ok.
CancelConsumeCancels a registered consumer (basic.cancel).
CancelConsumeExCancels a consumer synchronously and returns True on basic.cancel-ok.

Publishing

NameDescription
PublishMessagePublishes a message to an exchange (basic.publish). Overloaded for string or stream bodies.
AckMessageAcknowledges receipt of one or more delivered messages (basic.ack).
RejectMessageRejects a delivered message (basic.reject), optionally returning it to the queue.

Recovery

NameDescription
RecoverAsks the broker to redeliver all un-ACKed messages on the channel (basic.recover with synchronous reply).
RecoverExSynchronous redeliver-all request that returns True when the broker confirms the recover.
RecoverAsyncAsynchronous redeliver-all request (basic.recover-async), no broker confirmation.

Transactions

NameDescription
SelectTransactionStarts a transaction on the channel (tx.select).
SelectTransactionExStarts a transaction synchronously and returns True on tx.select-ok.
CommitTransactionCommits the current transaction on a channel (tx.commit).
CommitTransactionExCommits the transaction synchronously and returns True on tx.commit-ok.
RollbackTransactionRolls back the current transaction on a channel (tx.rollback).
RollbackTransactionExRolls back the transaction synchronously and returns True on tx.rollback-ok.

Advanced

NameDescription
WriteDataLow-level method that writes raw data straight onto the underlying WebSocket transport. Overloaded for string or stream input.

All Methods (alphabetical)

NameDescription
AckMessageAcknowledges receipt of one or more delivered messages (basic.ack).
BindQueueBinds a queue to an exchange using a routing key (queue.bind).
BindQueueExBinds a queue to an exchange and waits for the broker confirmation, returning success as a Boolean.
CancelConsumeCancels a registered consumer (basic.cancel).
CancelConsumeExCancels a consumer synchronously and returns True on basic.cancel-ok.
CloseCloses the AMQP connection. Overloaded: clean close with no arguments, or explicit close passing reply-code/text/class/method.
CloseChannelCloses an AMQP channel (channel.close).
CloseChannelExCloses an AMQP channel synchronously and returns True when the broker acknowledged the close.
CloseExCloses the AMQP connection synchronously and returns True when the broker acknowledged the close.
CommitTransactionCommits the current transaction on a channel (tx.commit).
CommitTransactionExCommits the transaction synchronously and returns True on tx.commit-ok.
ConsumeRegisters a consumer on a queue (basic.consume).
ConsumeExRegisters a consumer synchronously and returns True on basic.consume-ok.
DeclareExchangeDeclares an exchange on the broker (exchange.declare).
DeclareExchangeExDeclares an exchange synchronously, waiting for exchange.declare-ok.
DeclareQueueDeclares a queue on the broker (queue.declare).
DeclareQueueExDeclares a queue synchronously, waiting for queue.declare-ok.
DeleteExchangeDeletes an exchange (exchange.delete).
DeleteExchangeExDeletes an exchange synchronously and returns True on exchange.delete-ok.
DeleteQueueDeletes a queue (queue.delete).
DeleteQueueExDeletes a queue synchronously and returns True on queue.delete-ok.
DisableChannelPauses message flow on a channel (channel.flow active=false).
DisableChannelExPauses message flow on a channel synchronously and returns True on broker confirmation.
EnableChannelResumes message flow on a previously-paused channel (channel.flow active=true).
EnableChannelExResumes message flow on a channel synchronously and returns True on broker confirmation.
OpenChannelOpens a new AMQP channel with the specified name (channel.open).
OpenChannelExOpens a new AMQP channel synchronously, waiting for channel.open-ok.
PublishMessagePublishes a message to an exchange (basic.publish). Overloaded for string or stream bodies.
PurgeQueueRemoves all pending messages from a queue (queue.purge).
PurgeQueueExPurges a queue synchronously and returns True on queue.purge-ok.
RecoverAsks the broker to redeliver all un-ACKed messages on the channel (basic.recover with synchronous reply).
RecoverAsyncAsynchronous redeliver-all request (basic.recover-async), no broker confirmation.
RecoverExSynchronous redeliver-all request that returns True when the broker confirms the recover.
RejectMessageRejects a delivered message (basic.reject), optionally returning it to the queue.
RollbackTransactionRolls back the current transaction on a channel (tx.rollback).
RollbackTransactionExRolls back the transaction synchronously and returns True on tx.rollback-ok.
SelectTransactionStarts a transaction on the channel (tx.select).
SelectTransactionExStarts a transaction synchronously and returns True on tx.select-ok.
UnBindQueueRemoves a binding between a queue and an exchange (queue.unbind).
UnBindQueueExRemoves a binding synchronously and returns True on queue.unbind-ok.
WriteDataLow-level method that writes raw data straight onto the underlying WebSocket transport. Overloaded for string or stream input.