Class InMemoryRepository.Builder

Enclosing class:
InMemoryRepository

public static class InMemoryRepository.Builder extends DfsRepositoryBuilder<InMemoryRepository.Builder,InMemoryRepository>
Builder for in-memory repositories.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public InMemoryRepository build() throws IOException
      Description copied from class: DfsRepositoryBuilder
      Create a repository matching the configuration in this builder.

      If an option was not set, the build method will try to default the option based on other options. If insufficient information is available, an exception is thrown to the caller.

      Create a repository matching the configuration in this builder.

      If an option was not set, the build method will try to default the option based on other options. If insufficient information is available, an exception is thrown to the caller.

      Specified by:
      build in class DfsRepositoryBuilder<InMemoryRepository.Builder,InMemoryRepository>
      Returns:
      a repository matching this configuration. The caller is responsible to close the repository instance when it is no longer needed.
      Throws:
      IOException - the repository could not be accessed to configure the rest of the builder's parameters.