ResultFuture

org.apache.flinkx.api.async.ResultFuture
@PublicEvolving
trait ResultFuture[OUT]

The result future collects data/errors from the user code while processing asynchronous I/O operations.

Type parameters

OUT

type of the output element

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def complete(result: Iterable[OUT]): Unit

Complete the ResultFuture with a set of result elements.

Complete the ResultFuture with a set of result elements.

Note that it should be called for exactly one time in the user code. Calling this function for multiple times will cause data lose.

Put all results in a Iterable and then issue ResultFuture.complete(Iterable).

Value parameters

result

to complete the async collector with

Attributes

def completeExceptionally(throwable: Throwable): Unit

Complete this ResultFuture with an error.

Complete this ResultFuture with an error.

Value parameters

throwable

to complete the async collector with

Attributes