MessagingCapabilities constructor

MessagingCapabilities(
  1. bool canMessageCount,
  2. bool canSend,
  3. bool canReceive,
  4. bool canPeek,
  5. bool canPeekBatch,
  6. bool canRenewLock,
  7. bool canAbandon,
  8. bool canDeadLetter,
  9. bool canClear,
)

Creates a new instance of the capabilities object.

  • canMessageCount true if queue supports reading message count.
  • canSend true if queue is able to send messages.
  • canReceive true if queue is able to receive messages.
  • canPeek true if queue is able to peek messages.
  • canPeekBatch true if queue is able to peek multiple messages in one batch.
  • canRenewLock true if queue is able to renew message lock.
  • canAbandon true if queue is able to abandon messages.
  • canDeadLetter true if queue is able to send messages to dead letter queue.
  • canClear true if queue can be cleared.

Implementation

MessagingCapabilities(
    bool canMessageCount,
    bool canSend,
    bool canReceive,
    bool canPeek,
    bool canPeekBatch,
    bool canRenewLock,
    bool canAbandon,
    bool canDeadLetter,
    bool canClear) {
  _canMessageCount = canMessageCount;
  _canSend = canSend;
  _canReceive = canReceive;
  _canPeek = canPeek;
  _canPeekBatch = canPeekBatch;
  _canRenewLock = canRenewLock;
  _canAbandon = canAbandon;
  _canDeadLetter = canDeadLetter;
  _canClear = canClear;
}