Package org.apache.jackrabbit.test
Interface RepositoryHelperPool
-
- All Known Implementing Classes:
RepositoryHelperPoolImpl
public interface RepositoryHelperPool
RepositoryHelperPool
defines a pool of repository helper instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RepositoryHelper
borrowHelper()
Borrows a repository helper instance.RepositoryHelper[]
borrowHelpers()
Borrows all available repository helper instances.void
returnHelper(RepositoryHelper helper)
Returns the given repository helper to the pool.
-
-
-
Method Detail
-
borrowHelper
RepositoryHelper borrowHelper() throws InterruptedException
Borrows a repository helper instance.- Returns:
- a repository helper.
- Throws:
InterruptedException
- if this thread is interrupted while waiting for a repository helper.
-
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.
-
-