Interface AsyncCloseables.CloseableResource

Enclosing class:
AsyncCloseables
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AsyncCloseables.CloseableResource
A resource that can be converted to an AsyncCloseable.
  • Method Summary

    Modifier and Type
    Method
    Description
    doClose(boolean graceful)
    Supplies the Completable representing the close.
  • Method Details

    • doClose

      Completable doClose(boolean graceful)
      Supplies the Completable representing the close.
      Parameters:
      graceful - true if the returned Completable should attempt to close gracefully.
      Returns:
      Completable representing close of the resource.