Interface ResourceCacheManager.PathWalkerFactory

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

@FunctionalInterface private static interface ResourceCacheManager.PathWalkerFactory
Functional callback interface to get a walkable stream of paths. Supports throwing IOException if the stream can not be created.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a new walkable stream of paths.
  • Method Details

    • createWalkingStream

      Stream<Path> createWalkingStream(Path path) throws IOException
      Create a new walkable stream of paths. The stream will be closed by the caller.
      Parameters:
      path - The path to create the stream for.
      Returns:
      A new stream of paths that are children (potentially several generations deep) of the given path.
      Throws:
      IOException - If the stream can not be created.