IN1
- The first input element type.IN2
- The second input element type.@Internal public interface CoBundleTrigger<IN1,IN2> extends Serializable
CoBundleTrigger
is similar with BundleTrigger
, and the only differences is
CoBundleTrigger
can handle two inputs.Modifier and Type | Method and Description |
---|---|
String |
explain() |
void |
onElement1(IN1 element)
Called for every element that gets added to the bundle from the first input.
|
void |
onElement2(IN2 element)
Called for every element that gets added to the bundle from the second input.
|
void |
registerCallback(BundleTriggerCallback callback)
Register a callback which will be called once this trigger decides to finish this bundle.
|
void |
reset()
Reset the trigger to its initiate status.
|
void registerCallback(BundleTriggerCallback callback)
void onElement1(IN1 element) throws Exception
BundleTriggerCallback.finishBundle()
should be invoked.element
- The element that arrived from the first input.Exception
void onElement2(IN2 element) throws Exception
BundleTriggerCallback.finishBundle()
should be invoked.element
- The element that arrived from the second input.Exception
void reset()
String explain()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.