@ProviderType
public interface PublisherBackPressureConfiguration
All onBackPressure
methods are mutually-exclusive and must be called once only.
Modifier and Type | Method and Description |
---|---|
PublisherBackPressureConfiguration |
onBackPressureElastic()
The configuration for back-pressure with an elastic, unlimited capacity buffer.
|
PublisherBackPressureConfiguration |
onBackPressureReject(int bufferCapacity)
The configuration for back-pressure with a specified number of buffered messages.
|
PublisherBackPressureConfiguration |
onBackPressureWait(int bufferCapacity)
The configuration for back-pressure with specified number of buffered messages.
|
PublisherBackPressureConfiguration onBackPressureElastic()
PublisherBackPressureConfiguration onBackPressureReject(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.PublisherBackPressureConfiguration onBackPressureWait(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.