@ProviderType public interface MessageReceiverBuilder extends ReceiverPropertyConfiguration
Modifier and Type | Method and Description |
---|---|
MessageReceiverBuilder |
fromProperties(Properties configuration)
Enables property-based configuration.
|
MessageReceiverBuilder |
withSubscriptions(TopicSubscription... subscriptions)
A
TopicSubscription can be added to the message receiver before the receiver is
started. |
MessageReceiverBuilder fromProperties(Properties configuration) throws IllegalArgumentException
fromProperties
in interface PropertyBasedConfiguration
fromProperties
in interface ReceiverPropertyConfiguration
configuration
- the properties (key of type String
and value of type String
) for configuration and fine-tuning. Common properties can be found
in SolaceProperties
and its sub-interfaces. Refer the SolaceProperties.ReceiverProperties
for the list of MessageReceiver
properties
configurable through this MessageReceiverBuilder
IllegalArgumentException
- if invalid properties were specifiedMessageReceiverBuilder withSubscriptions(TopicSubscription... subscriptions)
TopicSubscription
can be added to the message receiver before the receiver is
started. It is also possible to add topic subscriptions at later time before or after receiver
is started. When topic subscriptions are successfully added, the receiver is expected to
receive messages that are sent to the matching topic subscriptions.subscriptions
- the list of topic subscriptions to addCopyright 2019-2024 Solace Corporation. All rights reserved.