Class DefaultOutboundServicesConfiguration
- java.lang.Object
-
- de.hybris.platform.integrationservices.config.BaseIntegrationServicesConfiguration
-
- de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
-
- All Implemented Interfaces:
MonitoringConfiguration,OutboundServicesConfiguration
public class DefaultOutboundServicesConfiguration extends BaseIntegrationServicesConfiguration implements OutboundServicesConfiguration
Provides access methods to configurations related to the Outbound Services
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.integrationservices.config.BaseIntegrationServicesConfiguration
FALLBACK_MESSAGE
-
Fields inherited from interface de.hybris.platform.outboundservices.config.OutboundServicesConfiguration
DEFAULT_MAX_RESPONSE_PAYLOAD_SIZE, DEFAULT_REQUEST_EXECUTION_TIMEOUT_MS
-
-
Constructor Summary
Constructors Constructor Description DefaultOutboundServicesConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaximumResponsePayloadSize()Retrieves the maximum response payload sizelonggetRequestExecutionTimeout()Gets the outbound request timeout in millisecondsbooleanisMonitoringEnabled()Determines if monitoring is enabledbooleanisPayloadRetentionForErrorEnabled()Determines current setting of payload retention for non successful requests.booleanisPayloadRetentionForSuccessEnabled()Determines current setting of payload retention for successful requests.voidsetMaximumResponsePayloadSize(int maxPayloadSize)Sets the value of the maximum payload size accepted in outbound responses.voidsetRequestExecutionTimeout(long timeout)Sets the outbound request timeout in milliseconds-
Methods inherited from class de.hybris.platform.integrationservices.config.BaseIntegrationServicesConfiguration
getBooleanProperty, getConfigurationService, getIntegerProperty, getLongProperty, getStringProperty, setConfigurationService, setProperty, setProperty, setProperty
-
-
-
-
Method Detail
-
isPayloadRetentionForSuccessEnabled
public boolean isPayloadRetentionForSuccessEnabled()
Description copied from interface:MonitoringConfigurationDetermines current setting of payload retention for successful requests.- Specified by:
isPayloadRetentionForSuccessEnabledin interfaceMonitoringConfiguration- Returns:
- true or false depending if the property is enabled or not.
-
isPayloadRetentionForErrorEnabled
public boolean isPayloadRetentionForErrorEnabled()
Description copied from interface:MonitoringConfigurationDetermines current setting of payload retention for non successful requests.- Specified by:
isPayloadRetentionForErrorEnabledin interfaceMonitoringConfiguration- Returns:
- true or false depending if the property is enabled or not.
-
isMonitoringEnabled
public boolean isMonitoringEnabled()
Description copied from interface:MonitoringConfigurationDetermines if monitoring is enabled- Specified by:
isMonitoringEnabledin interfaceMonitoringConfiguration- Returns:
- true if monitoring is enabled, false otherwise
-
getMaximumResponsePayloadSize
public int getMaximumResponsePayloadSize()
Description copied from interface:OutboundServicesConfigurationRetrieves the maximum response payload size- Specified by:
getMaximumResponsePayloadSizein interfaceOutboundServicesConfiguration- Returns:
- the maximum payload size
-
setMaximumResponsePayloadSize
public void setMaximumResponsePayloadSize(int maxPayloadSize)
Sets the value of the maximum payload size accepted in outbound responses.- Parameters:
maxPayloadSize- Number of bytes allowed in the response payload
-
getRequestExecutionTimeout
public long getRequestExecutionTimeout()
Description copied from interface:OutboundServicesConfigurationGets the outbound request timeout in milliseconds- Specified by:
getRequestExecutionTimeoutin interfaceOutboundServicesConfiguration- Returns:
- timeout value
-
setRequestExecutionTimeout
public void setRequestExecutionTimeout(long timeout)
Sets the outbound request timeout in milliseconds- Parameters:
timeout- The number of milliseconds the outbound request can execute before timing out
-
-