Class SynchronizationEvent


  • @ApplicationScoped
    public class SynchronizationEvent
    extends Object
    The entry point to launch synchronization events
    • Constructor Detail

      • SynchronizationEvent

        public SynchronizationEvent()
    • Method Detail

      • getInstance

        public static SynchronizationEvent getInstance()
        Returns:
        the SynchronizationEvent instance
      • triggerEvent

        public void triggerEvent​(String event,
                                 String recordId)
        Triggers a single record synchronization event
        Parameters:
        event - The unique identifier of the synchronization event
        recordId - the ID that identifies the record related to the event. This is used to generate the event payload.
      • triggerEvent

        public void triggerEvent​(String event,
                                 Map<String,​Object> params)
        Triggers a multiple record synchronization event
        Parameters:
        event - The unique identifier of the multiple record synchronization event
        params - 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.