@ProviderType
public interface TransportProtocolConfiguration
Modifier and Type | Method and Description |
---|---|
TransportProtocolConfiguration |
withConnectionRetryStrategy(RetryStrategy strategy)
Configures the connection-retry behavior.
|
TransportProtocolConfiguration |
withMessageCompression(int compressionFactor)
Configures/enables the message compression factor.
|
TransportProtocolConfiguration |
withReconnectionRetryStrategy(RetryStrategy strategy)
Configures the reconnection retry behavior.
|
TransportProtocolConfiguration |
withTransportSecurityStrategy(TransportSecurityStrategy transportLayerSecurityStrategy)
Configures transport-layer security if desired, default is to use plain-text for transport.
|
TransportProtocolConfiguration withConnectionRetryStrategy(RetryStrategy strategy)
strategy
- configuration strategyTransportProtocolConfiguration withMessageCompression(int compressionFactor)
In order to use compression, target remote message broker port may need to be changed.
By default port 55003 used for compressed SMF without TLS
By default port 55443 used for compressed SMF over TLS
compressionFactor
- A compression factor in a valid range of 1-9 controls the ZLIB
compression level. The value 1 gives best speed, 9 gives best
compression. Note: If using compression on a session, the configured
KeepAlive interval should be longer than the maximum time required to
compress the largest message likely ever to be published to prevent
service disconnections.TransportProtocolConfiguration withReconnectionRetryStrategy(RetryStrategy strategy)
strategy
- the configuration strategyTransportProtocolConfiguration withTransportSecurityStrategy(TransportSecurityStrategy transportLayerSecurityStrategy)
transportLayerSecurityStrategy
- the transport layer strategyCopyright 2019-2024 Solace Corporation. All rights reserved.