Class CompletionActions

java.lang.Object
com.linecorp.armeria.common.util.CompletionActions

public final class CompletionActions extends Object
Provides the common actions that are useful when handling a CompletionStage.
  • Method Details

    • log

      @Nullable public static <T> T log(Throwable cause)
      Logs the specified Throwable. For example:
      
       CompletableFuture<?> f = ...;
       f.exceptionally(CompletionActions::log);
       
      Returns:
      null