public static class ExchangeParameters.Builder extends Object
ExchangeParameters from Properties, falling back to configurable default values for
undefined parameters.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ExchangeParameters |
build(Properties config,
String exchangeKeyName)
Applies the given
Properties using default naming conventions using the given exchange name; see
ExchangeParameters JavaDoc. |
ExchangeParameters.Builder |
defaultingToDeclare(boolean declare)
Sets whether the exchange should be declared by default if left unconfigured by
Properties. |
ExchangeParameters.Builder |
defaultingToDefaultRoutingKey(String defaultRoutingKey)
Sets the default routing key to use for binding queues that have no other requirement (see
ExchangeParameters.getDefaultRoutingKey() for details). |
ExchangeParameters.Builder |
defaultingToDurable(boolean durable)
Sets if the exchange should be declared durable by default if left unconfigured by
Properties. |
ExchangeParameters.Builder |
defaultingToName(String name)
Sets the exchange name to default to if left unconfigured by
Properties. |
ExchangeParameters.Builder |
defaultingToType(String type)
Sets the exchange type to default to if left unconfigured by
Properties. |
public ExchangeParameters.Builder defaultingToName(String name)
Properties.name - default exchange namepublic ExchangeParameters.Builder defaultingToDeclare(boolean declare)
Properties.declare - true declares the exchange by default, false does notpublic ExchangeParameters.Builder defaultingToDefaultRoutingKey(String defaultRoutingKey)
ExchangeParameters.getDefaultRoutingKey() for details).
This setting only applies if left unconfigured in Properties.defaultRoutingKey - default routing key to default topublic ExchangeParameters.Builder defaultingToDurable(boolean durable)
Properties.durable - true declares the exchange as durable if it is supposed to be declared; false does notpublic ExchangeParameters.Builder defaultingToType(String type)
Properties.type - default exchange typepublic ExchangeParameters build(Properties config, String exchangeKeyName)
Properties using default naming conventions using the given exchange name; see
ExchangeParameters JavaDoc.config - Properties to apply configuration fromexchangeKeyName - exchange name used in Properties keysCopyright © 2025. All rights reserved.