Class DefaultOutboundSyncConfiguration
java.lang.Object
de.hybris.platform.integrationservices.config.BaseIntegrationServicesConfiguration
de.hybris.platform.outboundsync.config.impl.DefaultOutboundSyncConfiguration
- All Implemented Interfaces:
OutboundSyncConfiguration
public class DefaultOutboundSyncConfiguration
extends BaseIntegrationServicesConfiguration
implements OutboundSyncConfiguration
Provides access methods to configurations related to the Inbound Services
-
Field Summary
Fields inherited from class de.hybris.platform.integrationservices.config.BaseIntegrationServicesConfiguration
FALLBACK_MESSAGEFields inherited from interface de.hybris.platform.outboundsync.config.impl.OutboundSyncConfiguration
DEFAULT_OUTBOUNDSYNC_BATCH_LIMIT, DEFAULT_OUTBOUNDSYNC_BATCH_RELEASE_TIMEOUT, DEFAULT_OUTBOUNDSYNC_CRONJOBMODEL_SEARCH_SLEEP_MILLIS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDetermines time through which changes to the same item will be treated as a single change.intDetermines maximum number of item changes accumulated during the grouping period before initiating the item change synchronization.intDetermines the max number of retry attempts allowed by the system after the initial synchronization attempt.intDetermines the max number of outbound sync changes that are sent as a batch request.intTimeout for the release of batch aggregationintDetermines the sleep time in milliseconds to force OutboundSyncJobRegister to wait a small amount of time before searching for the OutboundSyncCronjobModel model before updating it to prevent a potential race condition.booleanDetermines the ids for the OutboundSyncStreamConfigurations that will be excluded from infoExpression auto-generating.voidsetOutboundBatchLimit(int limit) Methods inherited from class de.hybris.platform.integrationservices.config.BaseIntegrationServicesConfiguration
getBooleanProperty, getConfigurationService, getIntegerProperty, getLongProperty, getStringProperty, setConfigurationService, setProperty, setProperty, setProperty
-
Constructor Details
-
DefaultOutboundSyncConfiguration
public DefaultOutboundSyncConfiguration()
-
-
Method Details
-
isInfoGenerationEnabledForStream
Description copied from interface:OutboundSyncConfigurationDetermines the ids for the OutboundSyncStreamConfigurations that will be excluded from infoExpression auto-generating.- Specified by:
isInfoGenerationEnabledForStreamin interfaceOutboundSyncConfiguration- Parameters:
streamConfig- OutboundSyncStreamConfigurationModel- Returns:
- a boolean indicating if a stream should have its infoExpression autogenerated
-
getMaxOutboundSyncRetries
public int getMaxOutboundSyncRetries()Description copied from interface:OutboundSyncConfigurationDetermines the max number of retry attempts allowed by the system after the initial synchronization attempt.- Specified by:
getMaxOutboundSyncRetriesin interfaceOutboundSyncConfiguration- Returns:
- number of times a failed item change synchronization will be reattempted.
-
getItemGroupSizeMax
public int getItemGroupSizeMax()Description copied from interface:OutboundSyncConfigurationDetermines maximum number of item changes accumulated during the grouping period before initiating the item change synchronization. Once this number of changes is achieved, the synchronization will start even, if the elapsed time for grouping is less thanOutboundSyncConfiguration.getItemGroupingTimeout().- Specified by:
getItemGroupSizeMaxin interfaceOutboundSyncConfiguration- Returns:
- maximum number of changes grouped together for a single synchronization.
- See Also:
-
getItemGroupingTimeout
public int getItemGroupingTimeout()Description copied from interface:OutboundSyncConfigurationDetermines time through which changes to the same item will be treated as a single change. This helps with some optimization for sending changes to the destination. For example, if a single Order is created with 10 OrderLines, we will have 11 changes for the order and, if this value is set to 0, the Order will be sent 11 times to the destination. But, if this value is greater than zero, than outbound synchronization will expect more changes and won't send each change individually. Only after this time elapsed all the item changes will be grouped together and send as a single change.- Specified by:
getItemGroupingTimeoutin interfaceOutboundSyncConfiguration- Returns:
- time in milliseconds to accumulate changes for an item before synchronizing them to the destination.
- See Also:
-
getOutboundSyncCronjobModelSearchSleep
public int getOutboundSyncCronjobModelSearchSleep()Description copied from interface:OutboundSyncConfigurationDetermines the sleep time in milliseconds to force OutboundSyncJobRegister to wait a small amount of time before searching for the OutboundSyncCronjobModel model before updating it to prevent a potential race condition.- Specified by:
getOutboundSyncCronjobModelSearchSleepin interfaceOutboundSyncConfiguration- Returns:
- time in milliseconds to force OutboundSyncJobRegister to wait before searching for the OutboundSyncCronjobModel
-
getOutboundBatchLimit
public int getOutboundBatchLimit()Description copied from interface:OutboundSyncConfigurationDetermines the max number of outbound sync changes that are sent as a batch request. The correspondingOutboundChannelConfigurationModel.getBatch()should be true to enable batch request.- Specified by:
getOutboundBatchLimitin interfaceOutboundSyncConfiguration- Returns:
- max number of outbound sync changes one batch request can contain.
-
getOutboundBatchReleaseTimeout
public int getOutboundBatchReleaseTimeout()Description copied from interface:OutboundSyncConfigurationTimeout for the release of batch aggregation- Specified by:
getOutboundBatchReleaseTimeoutin interfaceOutboundSyncConfiguration- Returns:
- Milliseconds for the batch release aggregation timeout
-
setOutboundBatchLimit
public void setOutboundBatchLimit(int limit)
-