/** * True if the stream element queue entry has been completed; otherwise false. * * @return True if the stream element queue entry has been completed; otherwise false. */ public boolean isDone() { return getFuture().isDone(); }
/** * Register the given complete function to be called once this queue entry has been completed. * * @param completeFunction to call when the queue entry has been completed * @param executor to run the complete function */ public void onComplete( final Consumer<StreamElementQueueEntry<T>> completeFunction, Executor executor) { final StreamElementQueueEntry<T> thisReference = this; getFuture().whenCompleteAsync( // call the complete function for normal completion as well as exceptional completion // see FLINK-6435 (value, throwable) -> completeFunction.accept(thisReference), executor); }
/** * True if the stream element queue entry has been completed; otherwise false. * * @return True if the stream element queue entry has been completed; otherwise false. */ public boolean isDone() { return getFuture().isDone(); }
/** * True if the stream element queue entry has been completed; otherwise false. * * @return True if the stream element queue entry has been completed; otherwise false. */ public boolean isDone() { return getFuture().isDone(); }
/** * True if the stream element queue entry has been completed; otherwise false. * * @return True if the stream element queue entry has been completed; otherwise false. */ public boolean isDone() { return getFuture().isDone(); }
/** * Register the given complete function to be called once this queue entry has been completed. * * @param completeFunction to call when the queue entry has been completed * @param executor to run the complete function */ public void onComplete( final Consumer<StreamElementQueueEntry<T>> completeFunction, Executor executor) { final StreamElementQueueEntry<T> thisReference = this; getFuture().whenCompleteAsync( // call the complete function for normal completion as well as exceptional completion // see FLINK-6435 (value, throwable) -> completeFunction.accept(thisReference), executor); }
/** * Register the given complete function to be called once this queue entry has been completed. * * @param completeFunction to call when the queue entry has been completed * @param executor to run the complete function */ public void onComplete( final Consumer<StreamElementQueueEntry<T>> completeFunction, Executor executor) { final StreamElementQueueEntry<T> thisReference = this; getFuture().whenCompleteAsync( // call the complete function for normal completion as well as exceptional completion // see FLINK-6435 (value, throwable) -> completeFunction.accept(thisReference), executor); }
/** * Register the given complete function to be called once this queue entry has been completed. * * @param completeFunction to call when the queue entry has been completed * @param executor to run the complete function */ public void onComplete( final AcceptFunction<StreamElementQueueEntry<T>> completeFunction, Executor executor) { final StreamElementQueueEntry<T> thisReference = this; getFuture().handleAsync(new BiFunction<T, Throwable, Void>() { @Override public Void apply(T t, Throwable throwable) { // call the complete function for normal completion as well as exceptional completion // see FLINK-6435 completeFunction.accept(thisReference); return null; } }, executor); }