4.8.4. アプリケーションからの交換の作成
送信者またはレシーバーのアドレスに次のパラメーターを使用すると、きめ細かな交換をアプリケーションで宣言できます。
create: always
node: {type: topic, x-declare: {exchange: exchange-name, type: fanout}}
以下の例では、という名前の新しい FCout 交換を作成するアドレスを示してい
myfanout
ます。
- python
tx = ssn.sender("myfanout; {create: always, node: {type: topic, x-declare: {exchange: myfanout, type: fanout}}}")