Class JdkFutures


  • @Deprecated(forRemoval=true)
    public final class JdkFutures
    extends Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    This class is not used anywhere in OpenDaylight proper. Most of the functionality is available from LoggingFutures and Guava's Futures.
    Utility methods pertaining to the Java 5 Future interface.

    Use of JDK Future should generally be avoid, but is prevalent in ODL because the Java Bindings (v1) generated code uses them for all RPC return types.

    Any new hand written code should never use the old Future interface anymore, but instead use either a Guava ListenableFuture, or a Java 8 CompletionStage.

    Author:
    Michael Vorburger.ch