Class AbstractAsyncCloseable

All Implemented Interfaces:
AsyncCloseable, Reactive

public abstract class AbstractAsyncCloseable extends ImplicitlyReactive implements AsyncCloseable
  • Constructor Details

    • AbstractAsyncCloseable

      public AbstractAsyncCloseable()
  • Method Details

    • getException

      public Exception getException()
    • getCloseable

      @Nullable public @Nullable AsyncCloseable getCloseable()
    • setCloseable

      public final void setCloseable(@Nullable @Nullable AsyncCloseable closeable)
    • onClosed

      protected void onClosed(Exception e)
    • onCleanup

      protected void onCleanup()
    • closeEx

      public final void closeEx(Exception e)
      Description copied from interface: AsyncCloseable
      Closes process exceptionally in case an exception is thrown while executing the given process.
      Specified by:
      closeEx in interface AsyncCloseable
      Parameters:
      e - exception that is used to close process with
    • isClosed

      public final boolean isClosed()
    • sanitize

      public final <T> Promise<T> sanitize(Promise<T> promise)
    • doSanitize

      protected final <T> Promise<T> doSanitize(T value, @Nullable @Nullable Exception e)