public class Defroster extends Object
DocumentSource
.DefrostTask
Constructor and Description |
---|
Defroster(ParsingContext parsingContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
defrost()
Defrosts using a new thread pool with 1 thread per available processor
without blocking.
|
void |
defrost(ExecutorService executorService)
Defrosts using an executor service without blocking.
|
void |
defrost(ExecutorService executorService,
boolean block)
Defrosts using an executor service.
|
void |
defrost(int threads)
Defrosts using a new thread pool without blocking.
|
Collection<Throwable> |
getErrors() |
ParsingContext |
getLanguageManager()
The parsing context.
|
boolean |
hasErrors() |
boolean |
wasInterrupted() |
public Defroster(ParsingContext parsingContext)
parsingContext
- The parsing contextpublic ParsingContext getLanguageManager()
public boolean wasInterrupted()
public boolean hasErrors()
getErrors()
public Collection<Throwable> getErrors()
hasErrors()
public void defrost() throws InterruptedException
InterruptedException
- In case a thread was interruptedpublic void defrost(int threads) throws InterruptedException
threads
- The number of threads to useInterruptedException
- In case a thread was interruptedpublic void defrost(ExecutorService executorService) throws InterruptedException
executorService
- The executor service to useInterruptedException
- In case a thread was interruptedpublic void defrost(ExecutorService executorService, boolean block) throws InterruptedException
executorService
- The executor service to useblock
- Whether to block until doneInterruptedException
- In case a thread was interruptedCopyright © 2009-2015 Three Crickets LLC.