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.

  • Class
    Description
    Represents a function that accepts a value of type T and produces a result of type R.
    An interface for asynchronous operations, providing utility methods and constants related to asynchronous computations.
    The AsyncApplyFunction interface represents a function that asynchronously accepts a value of type T and produces a result of type R.
    The AsyncBiFunction interface represents a bi-function that asynchronously accepts two arguments and produces a result.
    The AsyncCatchFunction interface represents a function that handles exceptions occurring within an asynchronous operation.
    The AsyncForEachRun class is part of the asynchronous operation utilities within the Hadoop Distributed File System (HDFS) Federation router.
    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.
    The CatchFunction interface represents a function that handles exceptions occurring within an asynchronous operation.
    The FinallyFunction interface 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.