Class ScalaFutureUtils
java.lang.Object
org.apache.flink.runtime.concurrent.pekko.ScalaFutureUtils
Utilities to convert Scala types into Java types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,U extends T>
CompletableFuture<T>toJava(scala.concurrent.Future<U> scalaFuture) Converts a ScalaFutureto aCompletableFuture.
-
Constructor Details
-
ScalaFutureUtils
public ScalaFutureUtils()
-
-
Method Details
-
toJava
Converts a ScalaFutureto aCompletableFuture.- Type Parameters:
T- type of the future valueU- type of the original future- Parameters:
scalaFuture- to convert to a Java 8 CompletableFuture- Returns:
- Java 8 CompletableFuture
-