Interface EventTrigger
-
public interface EventTrigger
Provides the ability of triggering synchronization events
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
getPriority()
boolean
handlesEvent(String event)
void
triggerEvent(String event, String recordId)
Triggers a single record synchronization eventvoid
triggerEvent(String event, Map<String,Object> params)
Triggers a multiple record synchronization event
-
-
-
Method Detail
-
triggerEvent
void triggerEvent(String event, String recordId)
Triggers a single record synchronization event- Parameters:
event
- The unique identifier of the synchronization eventrecordId
- the ID that identifies the record related to the event. This is used to generate the event payload.
-
triggerEvent
void triggerEvent(String event, Map<String,Object> params)
Triggers a multiple record synchronization event- Parameters:
event
- The unique identifier of the multiple record synchronization eventparams
- The map of parameters used to obtain the records that will be related to the event. The keys are the parameter name and the map values are the values for each parameter.
-
handlesEvent
boolean handlesEvent(String event)
- Returns:
- true if the EventTrigger is able to handle the provided event. Otherwise, false is returned.
-
getPriority
default int getPriority()
- Returns:
- an integer representing the priority of this EventTrigger. It is used to select the EventTrigger with most priority in case there exists several instances which can handle the same kind of synchronization event. In that case, the one with the lowest priority will be used to trigger those events. By default this method returns 100.
- See Also:
handlesEvent(String)
-
-