exchangeType

@JvmName(name = "sluerrpkndqkfcsi")
suspend fun exchangeType(value: Output<String>)
@JvmName(name = "nqrtrglsntqyvhlp")
suspend fun exchangeType(value: String?)

Parameters

value

The type of the exchange. Valid values:

  • FANOUT: An exchange of this type routes all the received messages to all the queues bound to this exchange. You can use a fanout exchange to broadcast messages.

  • DIRECT: An exchange of this type routes a message to the queue whose binding key is exactly the same as the routing key of the message.

  • TOPIC: This type is similar to the direct exchange type. An exchange of this type routes a message to one or more queues based on the fuzzy match or multi-condition match result between the routing key of the message and the binding keys of the current exchange.

  • HEADERS: Headers Exchange uses the Headers property instead of Routing Key for routing matching. When binding Headers Exchange and Queue, set the key-value pair of the binding property; when sending a message to the Headers Exchange, set the message's Headers property key-value pair and use the message Headers The message is routed to the bound Queue by comparing the attribute key-value pair and the bound attribute key-value pair.