Class AmqpConnectorOutgoingConfiguration
- java.lang.Object
-
- io.smallrye.reactive.messaging.amqp.AmqpConnectorCommonConfiguration
-
- io.smallrye.reactive.messaging.amqp.AmqpConnectorOutgoingConfiguration
-
public class AmqpConnectorOutgoingConfiguration extends AmqpConnectorCommonConfiguration
Extract the outgoing configuration for thesmallrye-amqp
connector.
-
-
Field Summary
-
Fields inherited from class io.smallrye.reactive.messaging.amqp.AmqpConnectorCommonConfiguration
config
-
-
Constructor Summary
Constructors Constructor Description AmqpConnectorOutgoingConfiguration(org.eclipse.microprofile.config.Config config)
Creates a new AmqpConnectorOutgoingConfiguration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getCloudEventsDataContentType()
Gets the cloud-events-data-content-type value from the configuration.Optional<String>
getCloudEventsDataSchema()
Gets the cloud-events-data-schema value from the configuration.Boolean
getCloudEventsInsertTimestamp()
Gets the cloud-events-insert-timestamp value from the configuration.String
getCloudEventsMode()
Gets the cloud-events-mode value from the configuration.Optional<String>
getCloudEventsSource()
Gets the cloud-events-source value from the configuration.Optional<String>
getCloudEventsSubject()
Gets the cloud-events-subject value from the configuration.Optional<String>
getCloudEventsType()
Gets the cloud-events-type value from the configuration.Integer
getCreditRetrievalPeriod()
Gets the credit-retrieval-period value from the configuration.Boolean
getDurable()
Gets the durable value from the configuration.Boolean
getMerge()
Gets the merge value from the configuration.Long
getTtl()
Gets the ttl value from the configuration.Optional<Boolean>
getUseAnonymousSender()
Gets the use-anonymous-sender value from the configuration.void
validate()
-
Methods inherited from class io.smallrye.reactive.messaging.amqp.AmqpConnectorCommonConfiguration
config, getAddress, getChannel, getClientOptionsName, getCloudEvents, getConnectTimeout, getContainerId, getFromAlias, getFromAliasWithDefaultValue, getHealthTimeout, getHost, getLinkName, getPassword, getPort, getReconnectAttempts, getReconnectInterval, getSniServerName, getTracingEnabled, getUsername, getUseSsl, getVirtualHost
-
-
-
-
Method Detail
-
getDurable
public Boolean getDurable()
Gets the durable value from the configuration. Attribute Name: durable Description: Whether sent AMQP messages are marked durable Default Value: false- Returns:
- the durable
-
getTtl
public Long getTtl()
Gets the ttl value from the configuration. Attribute Name: ttl Description: The time-to-live of the send AMQP messages. 0 to disable the TTL Default Value: 0- Returns:
- the ttl
-
getCreditRetrievalPeriod
public Integer getCreditRetrievalPeriod()
Gets the credit-retrieval-period value from the configuration. Attribute Name: credit-retrieval-period Description: The period (in milliseconds) between two attempts to retrieve the credits granted by the broker. This time is used when the sender run out of credits. Default Value: 2000- Returns:
- the credit-retrieval-period
-
getUseAnonymousSender
public Optional<Boolean> getUseAnonymousSender()
Gets the use-anonymous-sender value from the configuration. Attribute Name: use-anonymous-sender Description: Whether or not the connector should use an anonymous sender. Default value is `true` if the broker supports it, `false` otherwise. If not supported, it is not possible to dynamically change the destination address.- Returns:
- the use-anonymous-sender
-
getMerge
public Boolean getMerge()
Gets the merge value from the configuration. Attribute Name: merge Description: Whether the connector should allow multiple upstreams Default Value: false- Returns:
- the merge
-
getCloudEventsSource
public Optional<String> getCloudEventsSource()
Gets the cloud-events-source value from the configuration. Attribute Name: cloud-events-source Description: Configure the default `source` attribute of the outgoing Cloud Event. Requires `cloud-events` to be set to `true`. This value is used if the message does not configure the `source` attribute itself MicroProfile Config Alias: cloud-events-default-source- Returns:
- the cloud-events-source
-
getCloudEventsType
public Optional<String> getCloudEventsType()
Gets the cloud-events-type value from the configuration. Attribute Name: cloud-events-type Description: Configure the default `type` attribute of the outgoing Cloud Event. Requires `cloud-events` to be set to `true`. This value is used if the message does not configure the `type` attribute itself MicroProfile Config Alias: cloud-events-default-type- Returns:
- the cloud-events-type
-
getCloudEventsSubject
public Optional<String> getCloudEventsSubject()
Gets the cloud-events-subject value from the configuration. Attribute Name: cloud-events-subject Description: Configure the default `subject` attribute of the outgoing Cloud Event. Requires `cloud-events` to be set to `true`. This value is used if the message does not configure the `subject` attribute itself MicroProfile Config Alias: cloud-events-default-subject- Returns:
- the cloud-events-subject
-
getCloudEventsDataContentType
public Optional<String> getCloudEventsDataContentType()
Gets the cloud-events-data-content-type value from the configuration. Attribute Name: cloud-events-data-content-type Description: Configure the default `datacontenttype` attribute of the outgoing Cloud Event. Requires `cloud-events` to be set to `true`. This value is used if the message does not configure the `datacontenttype` attribute itself MicroProfile Config Alias: cloud-events-default-data-content-type- Returns:
- the cloud-events-data-content-type
-
getCloudEventsDataSchema
public Optional<String> getCloudEventsDataSchema()
Gets the cloud-events-data-schema value from the configuration. Attribute Name: cloud-events-data-schema Description: Configure the default `dataschema` attribute of the outgoing Cloud Event. Requires `cloud-events` to be set to `true`. This value is used if the message does not configure the `dataschema` attribute itself MicroProfile Config Alias: cloud-events-default-data-schema- Returns:
- the cloud-events-data-schema
-
getCloudEventsInsertTimestamp
public Boolean getCloudEventsInsertTimestamp()
Gets the cloud-events-insert-timestamp value from the configuration. Attribute Name: cloud-events-insert-timestamp Description: Whether or not the connector should insert automatically the `time` attribute into the outgoing Cloud Event. Requires `cloud-events` to be set to `true`. This value is used if the message does not configure the `time` attribute itself MicroProfile Config Alias: cloud-events-default-timestamp Default Value: true- Returns:
- the cloud-events-insert-timestamp
-
getCloudEventsMode
public String getCloudEventsMode()
Gets the cloud-events-mode value from the configuration. Attribute Name: cloud-events-mode Description: The Cloud Event mode (`structured` or `binary` (default)). Indicates how are written the cloud events in the outgoing record Default Value: binary- Returns:
- the cloud-events-mode
-
validate
public void validate()
- Overrides:
validate
in classAmqpConnectorCommonConfiguration
-
-