Package org.apache.hadoop.hdfs.server.federation.router.async.utils
@Private
@Evolving
package org.apache.hadoop.hdfs.server.federation.router.async.utils
This package contains classes that facilitate asynchronous operations within the Hadoop
Distributed File System (HDFS) Federation router. These classes are designed to work with
the Hadoop ecosystem, providing utilities and interfaces to perform non-blocking tasks that
can improve the performance and responsiveness of HDFS operations.
These classes work together to enable complex asynchronous workflows, making it easier to write code that can handle long-running tasks without blocking, thus improving the overall efficiency and scalability of HDFS operations.
-
ClassDescriptionApplyFunction<T,
R> Represents a function that accepts a value of type T and produces a result of type R.Async<R>An interface for asynchronous operations, providing utility methods and constants related to asynchronous computations.AsyncApplyFunction<T,R> The AsyncApplyFunction interface represents a function that asynchronously accepts a value of type T and produces a result of type R.AsyncBiFunction<T,P, R> TheAsyncBiFunctioninterface represents a bi-function that asynchronously accepts two arguments and produces a result.AsyncCatchFunction<R,E extends Throwable> The AsyncCatchFunction interface represents a function that handles exceptions occurring within an asynchronous operation.AsyncForEachRun<I,R> The AsyncForEachRun class is part of the asynchronous operation utilities within the Hadoop Distributed File System (HDFS) Federation router.AsyncRun<R>The AsyncRun interface represents an asynchronous operation that can be executed in the context of the Hadoop Distributed File System (HDFS) Federation router.The AsyncUtil class provides a collection of utility methods to simplify the implementation of asynchronous operations using Java's CompletableFuture.CatchFunction<R,E extends Throwable> TheCatchFunctioninterface represents a function that handles exceptions occurring within an asynchronous operation.TheFinallyFunctioninterface represents a function that is used to perform final actions after an asynchronous operation completes, regardless of whether the operation was successful or resulted in an exception.