Interface ITimeBasedEventTriggerRevoker

All Known Implementing Classes:
TimeBasedEventTriggerRevoker

public interface ITimeBasedEventTriggerRevoker

Note: If the methods provided by the revoker seems too generic, then consider making the trigger key more specific. Such as using a compound key of the EPCIS event ID and the EPC instead of only the EPC.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fire(String triggerKey)
    Fire the trigger before revoking it, without taking the fireAt time into consideration.
    void
    revokeTrigger(String triggerKey)
    Revoke a trigger on a trigger key.
    void
    revokeTriggers(com.persequor.event.Event sourceEvent)
    Revoke triggers relating to the event that initially created the trigger, regardless of the trigger key.
    void
    Revoke triggers on trigger keys.
  • Method Details

    • revokeTrigger

      void revokeTrigger(String triggerKey)
      Revoke a trigger on a trigger key.
      Parameters:
      triggerKey - - Key identifying the trigger among others. E.g. an EPC.
    • revokeTriggers

      void revokeTriggers(Collection<String> triggerKeys)
      Revoke triggers on trigger keys.
      Parameters:
      triggerKeys - - Keys identifying the triggers among others. E.g. EPCs.
    • revokeTriggers

      void revokeTriggers(com.persequor.event.Event sourceEvent)
      Revoke triggers relating to the event that initially created the trigger, regardless of the trigger key.
      Parameters:
      sourceEvent - - Event from which the triggers origins.
    • fire

      void fire(String triggerKey)
      Fire the trigger before revoking it, without taking the fireAt time into consideration.
      Parameters:
      triggerKey - - Key identifying the trigger among others. E.g. an EPC.