T
- The input element type.@Internal public interface BundleTrigger<T> extends Serializable
BundleTrigger
determines when a bundle of input elements should be evaluated and
trigger the callback which registered previously.Modifier and Type | Method and Description |
---|---|
String |
explain() |
void |
onElement(T element)
Called for every element that gets added to the bundle.
|
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 onElement(T element) throws Exception
BundleTriggerCallback.finishBundle()
should be invoked.element
- The element that arrived.Exception
void reset()
String explain()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.