/** * Submit a resource for processing. * * @param resource * The resource (file or URL, but not a directory). * * @throws Exception * if there is a problem creating the parser task. * @throws RejectedExecutionException * if the work queue for the parser service is full. */ public void submitOne(final R resource) throws Exception { lock.lock(); try { // Note: the parser task will obtain the lock when it runs. final Callable<?> task = newParserTask(resource); submitOne(resource, task); } finally { lock.unlock(); } }
/** * Submit a resource for processing. * * @param resource * The resource (file or URL, but not a directory). * * @throws Exception * if there is a problem creating the parser task. * @throws RejectedExecutionException * if the work queue for the parser service is full. */ public void submitOne(final R resource) throws Exception { lock.lock(); try { // Note: the parser task will obtain the lock when it runs. final Callable<?> task = newParserTask(resource); submitOne(resource, task); } finally { lock.unlock(); } }
submitOne(resource, task);
submitOne(resource, task);
statementBufferFactory.submitOne(resource);
statementBufferFactory.submitOne(resource);
statementBufferFactory.submitOne(resource);
statementBufferFactory.submitOne(resource);
statementBufferFactory.submitOne(resource);
statementBufferFactory.submitOne(resource);