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.| 限定符和类型 | 方法和说明 |
|---|---|
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.Exceptionvoid onElement2(IN2 element) throws Exception
BundleTriggerCallback.finishBundle() should be invoked.element - The element that arrived from the second input.Exceptionvoid reset()
String explain()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.