Java Code Examples for org.apache.flink.streaming.api.functions.async.ResultFuture#completeExceptionally()
The following examples show how to use
org.apache.flink.streaming.api.functions.async.ResultFuture#completeExceptionally() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Future.java From alchemy with Apache License 2.0 | 5 votes |
public boolean completeExceptionally(Throwable error){ if (future instanceof ResultFuture){ ResultFuture resultFuture = (ResultFuture) future; resultFuture.completeExceptionally(error); return true; }else{ return ((CompletableFuture)future).completeExceptionally(error); } }
Example 2
Source File: AsyncWaitOperatorTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public void asyncInvoke(Integer input, ResultFuture<Integer> resultFuture) throws Exception { resultFuture.completeExceptionally(new Exception("Test exception")); }
Example 3
Source File: AsyncWaitOperatorTest.java From flink with Apache License 2.0 | 4 votes |
@Override public void asyncInvoke(Integer input, ResultFuture<Integer> resultFuture) throws Exception { resultFuture.completeExceptionally(new Exception("Test exception")); }
Example 4
Source File: AsyncWaitOperatorTest.java From flink with Apache License 2.0 | 4 votes |
@Override public void asyncInvoke(Integer input, ResultFuture<Integer> resultFuture) throws Exception { resultFuture.completeExceptionally(new Exception("Test exception")); }