Class SystemErrorOutboundSyncEventHandler
- java.lang.Object
-
- de.hybris.platform.outboundsync.job.impl.handlers.SystemErrorOutboundSyncEventHandler
-
- All Implemented Interfaces:
OutboundSyncEventHandler<SystemErrorOutboundSyncEvent>
public class SystemErrorOutboundSyncEventHandler extends java.lang.Object implements OutboundSyncEventHandler<SystemErrorOutboundSyncEvent>
Implementation ofOutboundSyncEventHandlerfor events of typeSystemErrorOutboundSyncEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SystemErrorOutboundSyncEventHandlercreateHandler()Instantiates this handlerjava.lang.Class<SystemErrorOutboundSyncEvent>getHandledEventClass()Returns the type of event that can be handled.OutboundSyncStatehandle(SystemErrorOutboundSyncEvent 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 SystemErrorOutboundSyncEventHandler createHandler()
Instantiates this handler- Returns:
- new handler instance
-
getHandledEventClass
public java.lang.Class<SystemErrorOutboundSyncEvent> getHandledEventClass()
Description copied from interface:OutboundSyncEventHandlerReturns the type of event that can be handled.- Specified by:
getHandledEventClassin interfaceOutboundSyncEventHandler<SystemErrorOutboundSyncEvent>- Returns:
- the
OutboundSyncEventtype class that the handler can handle.
-
handle
public OutboundSyncState handle(SystemErrorOutboundSyncEvent 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<SystemErrorOutboundSyncEvent>- 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.
-
-