org.apache.jackrabbit.test
Class RepositoryHelperPoolImpl
java.lang.Object
org.apache.jackrabbit.test.RepositoryHelperPoolImpl
- All Implemented Interfaces:
- RepositoryHelperPool
public class RepositoryHelperPoolImpl
- extends Object
- implements RepositoryHelperPool
RepositoryHelperPoolImpl
implements a pool of repository helper
instances.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryHelperPoolImpl
public RepositoryHelperPoolImpl()
addHelper
public void addHelper(RepositoryHelper helper)
borrowHelper
public RepositoryHelper borrowHelper()
throws InterruptedException
- Description copied from interface:
RepositoryHelperPool
- Borrows a repository helper instance.
- Specified by:
borrowHelper
in interface RepositoryHelperPool
- Returns:
- a repository helper.
- Throws:
InterruptedException
- if this thread is interrupted while waiting
for a repository helper.
returnHelper
public void returnHelper(RepositoryHelper helper)
- Description copied from interface:
RepositoryHelperPool
- Returns the given repository helper to the pool.
- Specified by:
returnHelper
in interface RepositoryHelperPool
- Parameters:
helper
- the repository helper to return.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.