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