T - the generic type for the generated message's payloadA - the generic type for the generated message's attributespublic static interface PollContext.PollItem<T,A>
| Modifier and Type | Method and Description |
|---|---|
SourceCallbackContext |
getSourceCallbackContext() |
PollContext.PollItem<T,A> |
setId(String id)
Associates this item to a unique identifier.
|
PollContext.PollItem<T,A> |
setResult(Result<T,A> result)
Sets the item content in the form of a
Result |
PollContext.PollItem<T,A> |
setWatermark(Serializable watermark)
Sets the watermark value associated to this item.
|
SourceCallbackContext getSourceCallbackContext()
SourceCallbackContextPollContext.PollItem<T,A> setResult(Result<T,A> result)
Resultresult - a Resultthis instanceIllegalArgumentException - if the result is nullPollContext.PollItem<T,A> setWatermark(Serializable watermark)
Remember that if the watermark value is not Comparable, then a custom Comparator should be provided
through PollContext.setWatermarkComparator(Comparator)
watermark - a watermark valuethis instancePollContext.PollItem<T,A> setId(String id)
id - a unique identifierthis instanceCopyright © 2025 MuleSoft, Inc.. All rights reserved.