[
https://issues.apache.org/jira/browse/FLINK-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aljoscha Krettek closed FLINK-5851.
-----------------------------------
Resolution: Fixed
Release Note: The API of AsyncFunction is changed. The type of object
handed to {{asyncInvoke()}} is now {{ResultFuture}} instead of
{{AsyncCollector}}. In order to complete the future with the result one has to
call {{ResultFuture#complete}} or {{ResultFuture#completeExceptionally}} in
case of an exceptional completion. (was: This change is breaking the API of
the AsyncFunction which is now called with a {{ResultFuture}} instead of a
{{AsyncCollector}}. In order to complete the future with the result one has to
call {{ResultFuture#complete}} or {{ResultFuture#completeExceptionally}} in
case of an exceptional completion.)
> Renaming AsyncCollector into ResultPromise/ResultFuture
> -------------------------------------------------------
>
> Key: FLINK-5851
> URL: https://issues.apache.org/jira/browse/FLINK-5851
> Project: Flink
> Issue Type: Improvement
> Components: DataStream API
> Affects Versions: 1.2.0, 1.3.0
> Reporter: Till Rohrmann
> Assignee: mingleizhang
> Labels: api-breaking
> Fix For: 1.4.0
>
>
> Currently, the async I/O API gives an {{AsyncCollector}} to an
> {{AsyncFunction}} implementation. The name does not really reflect what the
> {{AsyncCollector}} does since it does not collect but is actually a one time
> completable future. Therefore, I propose to rename the {{AsyncCollector}}
> into {{ResultPromise}} or {{ResultFuture}}. This is API changing.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)