Interface OutboundServicesConfiguration
- All Superinterfaces:
MonitoringConfiguration
- All Known Implementing Classes:
DefaultOutboundServicesConfiguration
Configuration for Outbound Services extension
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault DurationRetrieves duration for keeping outbound connection alive.default DurationRetrieves timeout for establishing an outbound connection.default DurationRetrieves period of time, during which an idle connection in a connection pool is considered to be valid.default intRetrieves maximum number of connections in a connection pool for outbound communications.default intRetrieves the maximum response payload sizedefault longGets the outbound request timeout in millisecondsMethods inherited from interface de.hybris.platform.integrationservices.monitoring.MonitoringConfiguration
isMonitoringEnabled, isPayloadRetentionForErrorEnabled, isPayloadRetentionForSuccessEnabled
-
Field Details
-
DEFAULT_MAX_RESPONSE_PAYLOAD_SIZE
static final int DEFAULT_MAX_RESPONSE_PAYLOAD_SIZE- See Also:
-
DEFAULT_REQUEST_EXECUTION_TIMEOUT_MS
static final long DEFAULT_REQUEST_EXECUTION_TIMEOUT_MS- See Also:
-
DEFAULT_MAX_POOL_CONNECTIONS
static final int DEFAULT_MAX_POOL_CONNECTIONS- See Also:
-
DEFAULT_CONNECTION_KEEP_ALIVE
-
DEFAULT_CONNECTION_TIMEOUT
-
DEFAULT_CONNECTION_VALID_PERIOD
-
-
Method Details
-
getMaximumResponsePayloadSize
default int getMaximumResponsePayloadSize()Retrieves the maximum response payload size- Returns:
- the maximum payload size
-
getRequestExecutionTimeout
default long getRequestExecutionTimeout()Gets the outbound request timeout in milliseconds- Returns:
- timeout value
-
getMaxConnectionPoolSize
default int getMaxConnectionPoolSize()Retrieves maximum number of connections in a connection pool for outbound communications.- Returns:
- configured value for the max connection pool size or 5, if the max connection pool size is not configured or the value cannot be parsed.
-
getConnectionKeepAlive
Retrieves duration for keeping outbound connection alive. Read Connection Keep-Alive for more information.- Returns:
- configured value for keeping the connections alive or duration of half second, if the duration is not configured or cannot be parsed.
-
getConnectionTimeout
Retrieves timeout for establishing an outbound connection.- Returns:
- configured value for the connection timeout or duration of 3 second, if the timeout value is not configured or cannot be parsed.
-
getIdleConnectionValidityPeriod
Retrieves period of time, during which an idle connection in a connection pool is considered to be valid. Once that period is over, the connection may be validated before leasing it from the pool.- Returns:
- configured value for the connection validity period or duration of half second, if the value is not configured or cannot be parsed.
-