org.modeshape.graph.search
Class SearchableRepositorySource.ParallelConnection
java.lang.Object
org.modeshape.graph.search.SearchableRepositorySource.AbstractConnection
org.modeshape.graph.search.SearchableRepositorySource.ParallelConnection
- All Implemented Interfaces:
- RepositoryConnection
- Enclosing class:
- SearchableRepositorySource
@NotThreadSafe
protected class SearchableRepositorySource.ParallelConnection
- extends SearchableRepositorySource.AbstractConnection
A RepositoryConnection
implementation that calls the delegate processor in a background thread, allowing the
processing of the FullTextSearchRequest
and AccessQueryRequest
objects to be done in this thread and in
parallel with other requests.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchableRepositorySource.ParallelConnection
protected SearchableRepositorySource.ParallelConnection(ExecutorService executorService)
execute
public void execute(ExecutionContext context,
Request request)
throws RepositorySourceException
- Execute the supplied commands against this repository source.
- Parameters:
context
- the environment in which the commands are being executed; never nullrequest
- the request to be executed; never null
- Throws:
RepositorySourceException
- if there is a problem loading the node data- See Also:
RepositoryConnection.execute(org.modeshape.graph.ExecutionContext,
org.modeshape.graph.request.Request)
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.