public class RepositoryHelperPoolImpl extends Object implements RepositoryHelperPool
RepositoryHelperPoolImpl
implements a pool of repository helper
instances.Modifier and Type | Method and Description |
---|---|
void |
addHelper(RepositoryHelper helper) |
RepositoryHelper |
borrowHelper()
Borrows a repository helper instance.
|
RepositoryHelper[] |
borrowHelpers()
Borrows all available repository helper instances.
|
static RepositoryHelperPool |
getInstance() |
void |
returnHelper(RepositoryHelper helper)
Returns the given repository helper to the pool.
|
public static RepositoryHelperPool getInstance()
public void addHelper(RepositoryHelper helper)
public RepositoryHelper borrowHelper() throws InterruptedException
RepositoryHelperPool
borrowHelper
in interface RepositoryHelperPool
InterruptedException
- if this thread is interrupted while waiting
for a repository helper.public RepositoryHelper[] borrowHelpers() throws InterruptedException
RepositoryHelperPool
borrowHelpers
in interface RepositoryHelperPool
InterruptedException
- if this thread is interrupted while waiting
for a repository helper.public void returnHelper(RepositoryHelper helper)
RepositoryHelperPool
returnHelper
in interface RepositoryHelperPool
helper
- the repository helper to return.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.