* Copyright (c) 2004-2006 TMate Software Ltd. All rights reserved.
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://svnkit.com/license.html
* If newer versions of this license are posted there, you may use a
* newer version instead, at your option.
A default implementation of the ISVNRepositoryPool interface - DefaultSVNRepositoryPool class - may cache the created SVNRepository objects in a common pool. Several threads may share that pool, but each thread is able only to retrieve those objects, that belong to it (were created in that thread).
mayReuse is true
and the pool feature for caching SVNRepository objects is supported
by the concrete implementation of this interface, then this method first
tries to find an existing SVNRepository object
in the pool of the current thread. If such an object is found that was
created for the same protocol as
url has, then resets this
object to a new
url and returns it back. Otherwise creates
a new one, stores it in the thread's pool and returns back.
mayReuse is false, then
creates a new object, that won't be reusable.
urla repository location to establish a connection with (will be the root directory for the working session)
mayReuseIf true then retrieves/creates a reusable object, otherwise creates a new unreusable one
urlis malformed or there's no appropriate implementation for a protocol
A default implementation DefaultSVNRepositoryPool is able to cache SVNRepository objects in a common pool shared between multiple threads. This method allows to close connections of all the cached objects.
shutdownAllif true - closes connections of all the SVNRepository objects, if false - connections of only some part of SVNRepository objects (for example, those, that are not needed anymore)