Interface AsyncResource

All Superinterfaces:
AutoCloseable, Resource
All Known Implementing Classes:
AbstractAsyncResource, ClasspathResource, FileResource, JarResource, ModuleResource, NativeResource, PathResource, URLResource, ZipResource

public interface AsyncResource extends Resource

An async resource uses an executor service to be read and written asynchronously.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • setExecutor

      void setExecutor(ExecutorService executor)

      Sets the executor service to use when reading or writing the resource asynchronously.

      Parameters:
      executor - the executor service to set
    • getExecutor

      ExecutorService getExecutor()

      Returns the executor service.

      Returns:
      an executor service