@ProviderType public interface RequestReplyMessageReceiverBuilder extends ReceiverPropertyConfiguration
RequestReplyMessageReceiver
.
This API expected to be thread safe.
Modifier and Type | Method and Description |
---|---|
RequestReplyMessageReceiver |
build(TopicSubscription requestTopicSubscription)
Builds a request-reply message receiver with the specified topic subscription.
|
RequestReplyMessageReceiver |
build(TopicSubscription requestTopicSubscription,
ShareName shareName)
Builds a request-reply message receiver with a shared topic subscription and the shared name.
|
RequestReplyMessageReceiverBuilder |
fromProperties(Properties configuration)
Enables property-based configuration and extended fine-tuning of the message receiver.
|
RequestReplyMessageReceiverBuilder |
onReplierBackPressureElastic()
The configuration for back-pressure with an elastic, unlimited capacity buffer.
|
RequestReplyMessageReceiverBuilder |
onReplierBackPressureReject(int bufferCapacity)
The configuration for back-pressure with a specified number of buffered messages.
|
RequestReplyMessageReceiverBuilder |
onReplierBackPressureWait(int bufferCapacity)
The configuration for back-pressure with specified number of buffered messages.
|
RequestReplyMessageReceiver build(TopicSubscription requestTopicSubscription) throws PubSubPlusClientException
requestTopicSubscription
- the topic subscriptionRequestReplyMessageReceiver
PubSubPlusClientException
- if unable to build an new instance of a message receiverRequestReplyMessageReceiver build(TopicSubscription requestTopicSubscription, ShareName shareName) throws PubSubPlusClientException
requestTopicSubscription
- the topic subscriptionshareName
- the share name describes a group of receiver to an identical
set of topic subscriptions, expected not to be null or name not
to be emptyRequestReplyMessageReceiver
PubSubPlusClientException
- if unable to build new instance of a receiverRequestReplyMessageReceiverBuilder fromProperties(Properties configuration) throws IllegalArgumentException
ReceiverPropertyConfiguration
Note: Callbacks cannot be configured using properties.
fromProperties
in interface PropertyBasedConfiguration
fromProperties
in interface ReceiverPropertyConfiguration
configuration
- the properties to use to fine-tune the message receiverIllegalArgumentException
- if invalid properties where specifiedRequestReplyMessageReceiverBuilder onReplierBackPressureElastic()
RequestReplyMessageReceiverBuilder onReplierBackPressureReject(int bufferCapacity)
PubSubPlusClientException.PublisherOverflowException
exception when the publishing capabilities of the API are
exceeded.bufferCapacity
- the maximum number of messages that can be buffered before the strategy
fails and messages can no longer be sent over the wire. Once this number
is exceeded, the publishing of new messages is no longer possible and
exceptions are thrown until the buffer has free capacity; value > 0 is expected.RequestReplyMessageReceiverBuilder onReplierBackPressureWait(int bufferCapacity)
bufferCapacity
causes
the publisher thread to pause.bufferCapacity
- the maximum number of messages that can be buffered before the publishing
thread is pausedCopyright 2019-2024 Solace Corporation. All rights reserved.