Class StartedOutboundSyncEventHandler
java.lang.Object
de.hybris.platform.outboundsync.job.impl.handlers.StartedOutboundSyncEventHandler
- All Implemented Interfaces:
OutboundSyncEventHandler<StartedOutboundSyncEvent>
public class StartedOutboundSyncEventHandler
extends Object
implements OutboundSyncEventHandler<StartedOutboundSyncEvent>
Implementation of
OutboundSyncEventHandler for events of type StartedOutboundSyncEvent.
Although this class is public it should not be extended and customized. Coordinating and managing events between different
handlers may be broken with a custom handler implementation.-
Method Summary
Modifier and TypeMethodDescriptionInstantiates this handler.Returns the type of event that can be handled.handle(StartedOutboundSyncEvent event, OutboundSyncState currentState) Handles the event and creates a newOutboundSyncStatethat is calculated based on the information received in aOutboundSyncEventand the current state if it exists.
-
Method Details
-
createHandler
Instantiates this handler.- Returns:
- new instance of the handler.
-
getHandledEventClass
Description copied from interface:OutboundSyncEventHandlerReturns the type of event that can be handled.- Specified by:
getHandledEventClassin interfaceOutboundSyncEventHandler<StartedOutboundSyncEvent>- Returns:
- the
OutboundSyncEventtype class that the handler can handle.
-
handle
Description copied from interface:OutboundSyncEventHandlerHandles the event and creates a newOutboundSyncStatethat is calculated based on the information received in aOutboundSyncEventand the current state if it exists.- Specified by:
handlein interfaceOutboundSyncEventHandler<StartedOutboundSyncEvent>- Parameters:
event-OutboundSyncEventcontaining initial information about a synchronization job.currentState-OutboundSyncStatewith the current status of the sync job if it has already been started.- Returns:
- a new
OutboundSyncStatecalculated from the parameters received.
-