Questo contenuto non è disponibile nella lingua selezionata.

7.2.4. Query Sender Capacity


When using asynchronous message sending, three sender properties are available to ascertain the state of the asynchronous calls. They are:
Sender Capacity
The maximum number of asynchronously sent messages that can be pending acknowledgement at any given time. By default this is UNLIMITED, but it can be changed to constrain the number of unsettled asynchronous calls. An attempt to make a further asynchronous call when the sender is at capacity will block until another sent message is acknowledged by the broker.
C++
sender.getCapacity()
Copy to Clipboard Toggle word wrap
Python
sender.capacity
Copy to Clipboard Toggle word wrap
Sender Unsettled
The number of asynchronous sends pending acknowledgement from the broker.
C++
sender.getUnsettled()
Copy to Clipboard Toggle word wrap
Python
sender.unsettled()
Copy to Clipboard Toggle word wrap
Sender Available
The number of additional asynchronous calls that the sender can accept at the moment. This value is available as a property, but can also be computed from sender.capacity - sender.unsettled.
C++
sender.getAvailable()
Copy to Clipboard Toggle word wrap
Python
sender.available()
Copy to Clipboard Toggle word wrap
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat