org.eclipse.xtext.builder.resourceloader
Class ParallelResourceLoader
java.lang.Object
org.eclipse.xtext.builder.resourceloader.AbstractResourceLoader
org.eclipse.xtext.builder.resourceloader.ParallelResourceLoader
- All Implemented Interfaces:
- IResourceLoader
public class ParallelResourceLoader
- extends AbstractResourceLoader
Loads resources in one more separate threads.
- Since:
- 2.1
- Author:
- Lieven Lemiengre - Initial contribution and API, Sebastian Zarnekow - Use IProject aware IResourceSetProvider instead of Provider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParallelResourceLoader
public ParallelResourceLoader(IResourceSetProvider resourceSetProvider,
IResourceLoader.Sorter sorter,
int nThreads,
int queueSize)
getTimeout
public long getTimeout()
setTimeout
public void setTimeout(long time,
java.util.concurrent.TimeUnit unit)
create
public IResourceLoader.LoadOperation create(org.eclipse.emf.ecore.resource.ResourceSet parent,
org.eclipse.core.resources.IProject project)
- Description copied from interface:
IResourceLoader
- Create a LoadOperation.
Be careful, while the load operation is running the parent ResourceSet may be read from different threads.
Synchronize on the parent ResourceSet when you interact with it!
- Parameters:
parent
- the parent ResourceSet
- Returns:
- a LoadOperation