Class CompletedOutboundSyncEventHandler
java.lang.Object
de.hybris.platform.outboundsync.job.impl.handlers.CompletedOutboundSyncEventHandler
- All Implemented Interfaces:
OutboundSyncEventHandler<CompletedOutboundSyncEvent>
public class CompletedOutboundSyncEventHandler
extends Object
implements OutboundSyncEventHandler<CompletedOutboundSyncEvent>
Implementation of
OutboundSyncEventHandler for events of type CompletedOutboundSyncEvent-
Method Summary
Modifier and TypeMethodDescriptionInstantiates this handlerReturns the type of event that can be handled.handle(CompletedOutboundSyncEvent 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 handler instance
-
getHandledEventClass
Description copied from interface:OutboundSyncEventHandlerReturns the type of event that can be handled.- Specified by:
getHandledEventClassin interfaceOutboundSyncEventHandler<CompletedOutboundSyncEvent>- 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<CompletedOutboundSyncEvent>- 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.
-