Interface RepositoryHelperPool

  • All Known Implementing Classes:
    RepositoryHelperPoolImpl

    public interface RepositoryHelperPool
    RepositoryHelperPool defines a pool of repository helper instances.
    • Method Detail

      • borrowHelpers

        RepositoryHelper[] borrowHelpers()
                                  throws InterruptedException
        Borrows all available repository helper instances. Waits until one becomes available.
        Returns:
        a repository helper.
        Throws:
        InterruptedException - if this thread is interrupted while waiting for a repository helper.
      • returnHelper

        void returnHelper​(RepositoryHelper helper)
        Returns the given repository helper to the pool.
        Parameters:
        helper - the repository helper to return.