Interface CoBundleTrigger<IN1,​IN2>

    • Method Detail

      • registerCallback

        void registerCallback​(BundleTriggerCallback callback)
        Register a callback which will be called once this trigger decides to finish this bundle.
      • onElement1

        void onElement1​(IN1 element)
                 throws Exception
        Called for every element that gets added to the bundle from the first input. If the trigger decides to start evaluate, BundleTriggerCallback.finishBundle() should be invoked.
        Parameters:
        element - The element that arrived from the first input.
        Throws:
        Exception
      • onElement2

        void onElement2​(IN2 element)
                 throws Exception
        Called for every element that gets added to the bundle from the second input. If the trigger decides to start evaluate, BundleTriggerCallback.finishBundle() should be invoked.
        Parameters:
        element - The element that arrived from the second input.
        Throws:
        Exception
      • reset

        void reset()
        Reset the trigger to its initiate status.