Class CentralOrderOutboundServicesConfiguration

java.lang.Object
de.hybris.platform.integrationservices.config.BaseIntegrationServicesConfiguration
de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
com.sap.sapcentralorderservices.services.config.CentralOrderOutboundServicesConfiguration
All Implemented Interfaces:
de.hybris.platform.integrationservices.monitoring.MonitoringConfiguration, de.hybris.platform.outboundservices.config.OutboundServicesConfiguration

public class CentralOrderOutboundServicesConfiguration extends de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
  • 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_CONNECTION_KEEP_ALIVE, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_CONNECTION_VALID_PERIOD, DEFAULT_MAX_POOL_CONNECTIONS, DEFAULT_MAX_RESPONSE_PAYLOAD_SIZE, DEFAULT_REQUEST_EXECUTION_TIMEOUT_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    int
     
    long
     
    void
    setConnectionKeepAlive(long millisec)
    Configures period of time to keep outbound connections alive.
    void
    Configures period of time to keep outbound connections alive.
    void
    setConnectionTimeout(long millisec)
    Configures timeout for establishing an outbound connection.
    void
     
    void
    Changes configuration for the maximum connection pool size.
    void
    Sets the outbound request timeout in milliseconds

    Methods inherited from class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration

    getMaximumResponsePayloadSize, isMonitoringEnabled, isPayloadRetentionForErrorEnabled, isPayloadRetentionForSuccessEnabled, setConnectionTimeout, setIdleConnectionValidityPeriod, setMaximumResponsePayloadSize

    Methods inherited from class de.hybris.platform.integrationservices.config.BaseIntegrationServicesConfiguration

    getBooleanProperty, getConfigurationService, getIntegerProperty, getLongProperty, getStringProperty, setConfigurationService, setProperty, setProperty, setProperty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CentralOrderOutboundServicesConfiguration

      public CentralOrderOutboundServicesConfiguration()
  • Method Details

    • getRequestExecutionTimeout

      public long getRequestExecutionTimeout()
      Specified by:
      getRequestExecutionTimeout in interface de.hybris.platform.outboundservices.config.OutboundServicesConfiguration
      Overrides:
      getRequestExecutionTimeout in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
    • setRequestExecutionTimeout

      public void setRequestExecutionTimeout(long timeout)
      Sets the outbound request timeout in milliseconds
      Overrides:
      setRequestExecutionTimeout in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
      Parameters:
      timeout - The number of milliseconds the outbound request can execute before timing out
    • getMaxConnectionPoolSize

      public int getMaxConnectionPoolSize()
      Specified by:
      getMaxConnectionPoolSize in interface de.hybris.platform.outboundservices.config.OutboundServicesConfiguration
      Overrides:
      getMaxConnectionPoolSize in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
    • setMaxConnectionPoolSize

      public void setMaxConnectionPoolSize(int value)
      Changes configuration for the maximum connection pool size. Changing this value does not guarantee being applied to the already existing connections pools. However, it should affect new pools created by services using this configuration.
      Overrides:
      setMaxConnectionPoolSize in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
      Parameters:
      value - new maximum number of connections in the pool.
    • getConnectionKeepAlive

      public Duration getConnectionKeepAlive()
      Specified by:
      getConnectionKeepAlive in interface de.hybris.platform.outboundservices.config.OutboundServicesConfiguration
      Overrides:
      getConnectionKeepAlive in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
    • setConnectionKeepAlive

      public void setConnectionKeepAlive(Duration d)
      Configures period of time to keep outbound connections alive.
      Overrides:
      setConnectionKeepAlive in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
      Parameters:
      d - duration to keep the connections alive. null value resets the configuration to default.
      See Also:
    • setConnectionKeepAlive

      public void setConnectionKeepAlive(long millisec)
      Configures period of time to keep outbound connections alive.
      Overrides:
      setConnectionKeepAlive in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
      Parameters:
      millisec - number of milliseconds to keep the connections alive. A negative value resets the configuration to default.
      See Also:
    • getConnectionTimeout

      public Duration getConnectionTimeout()
      Specified by:
      getConnectionTimeout in interface de.hybris.platform.outboundservices.config.OutboundServicesConfiguration
      Overrides:
      getConnectionTimeout in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
    • setConnectionTimeout

      public void setConnectionTimeout(long millisec)
      Configures timeout for establishing an outbound connection.
      Overrides:
      setConnectionTimeout in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
      Parameters:
      millisec - number of milliseconds to wait for a connection to be established. A negative value resets the configuration to default.
    • getIdleConnectionValidityPeriod

      public Duration getIdleConnectionValidityPeriod()
      Specified by:
      getIdleConnectionValidityPeriod in interface de.hybris.platform.outboundservices.config.OutboundServicesConfiguration
      Overrides:
      getIdleConnectionValidityPeriod in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration
    • setIdleConnectionValidityPeriod

      public void setIdleConnectionValidityPeriod(long millisec)
      Overrides:
      setIdleConnectionValidityPeriod in class de.hybris.platform.outboundservices.config.DefaultOutboundServicesConfiguration