|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryFactory
Method Summary | |
---|---|
void |
shutdown()
Begin the shutdown process for all the JcrEngine JcrEngines created by calls to RepositoryFactory.getRepository(Map) . |
boolean |
shutdown(long timeout,
TimeUnit unit)
Begin the shutdown process for all the JcrEngine JcrEngines created by calls to RepositoryFactory.getRepository(Map) . |
Methods inherited from interface javax.jcr.RepositoryFactory |
---|
getRepository |
Method Detail |
---|
void shutdown()
JcrEngine JcrEngines
created by calls to RepositoryFactory.getRepository(Map)
.
Calling #getRepository(Map)
with a file-based URL parameter causes a new JcrEngine
to be instantiated and
started. Any JcrEngine
created in this manner must be stored by the RepositoryFactory
implementation.
Invoking this method iteratively invokes the shutdown()
method on each JcrEngine
.
This method merely initiates the shutdown process for each JcrEngine
. There is no guarantee that the shutdown
process will have completed prior to this method returning. The shutdown(long, TimeUnit)
method provides the
ability to wait until all engines are shutdown or the given time elapses.
Invoking this method does not preclude creating new JcrEngines
with future calls to RepositoryFactory.getRepository(Map)
.
Any caller using this method as part of an application shutdown process should take care to cease invocations of
RepositoryFactory.getRepository(Map)
prior to invoking this method.
boolean shutdown(long timeout, TimeUnit unit) throws InterruptedException
JcrEngine JcrEngines
created by calls to RepositoryFactory.getRepository(Map)
.
Calling #getRepository(Map)
with a file-based URL parameter causes a new JcrEngine
to be instantiated and
started. Any JcrEngine
created in this manner must be stored by the RepositoryFactory
implementation.
Invoking this method iteratively invokes the shutdown()
method on each JcrEngine
and then iteratively
invokes the awaitTermination(long, TimeUnit)
method to await termination.
Although this method initiates the shutdown process for each JcrEngine
and invokes the awaitTermination
method, there is still no guarantee that the shutdown process will have completed prior to this method returning. It is
possible for the time required to shutdown one or more of the engines to exceed the provided time window.
Invoking this method does not preclude creating new JcrEngines
with future calls to RepositoryFactory.getRepository(Map)
.
Any caller using this method as part of an application shutdown process should take care to cease invocations of
RepositoryFactory.getRepository(Map)
prior to invoking this method.
timeout
- the maximum time per engine to allow for shutdownunit
- the time unit of the timeout argument
InterruptedException
- if interrupted while waiting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |