Class StartedOutboundSyncEventHandler
- java.lang.Object
-
- de.hybris.platform.outboundsync.job.impl.handlers.StartedOutboundSyncEventHandler
-
- All Implemented Interfaces:
OutboundSyncEventHandler<StartedOutboundSyncEvent>
public class StartedOutboundSyncEventHandler extends java.lang.Object implements OutboundSyncEventHandler<StartedOutboundSyncEvent>
Implementation ofOutboundSyncEventHandlerfor events of typeStartedOutboundSyncEvent. 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartedOutboundSyncEventHandlercreateHandler()Instantiates this handler.java.lang.Class<StartedOutboundSyncEvent>getHandledEventClass()Returns the type of event that can be handled.OutboundSyncStatehandle(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 Detail
-
createHandler
public static StartedOutboundSyncEventHandler createHandler()
Instantiates this handler.- Returns:
- new instance of the handler.
-
getHandledEventClass
public java.lang.Class<StartedOutboundSyncEvent> 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
public OutboundSyncState handle(StartedOutboundSyncEvent event, OutboundSyncState currentState)
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.
-
-