org.apache.jackrabbit.test
Interface RepositoryHelperPool

All Known Implementing Classes:
RepositoryHelperPoolImpl

public interface RepositoryHelperPool

RepositoryHelperPool defines a pool of repository helper instances.


Method Summary
 RepositoryHelper borrowHelper()
          Borrows a repository helper instance.
 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.

returnHelper

void returnHelper(RepositoryHelper helper)
Returns the given repository helper to the pool.

Parameters:
helper - the repository helper to return.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.