public interface QueueableResourceCompiler extends ResourceCompiler
ResourceCompiler
that can queue compile request and execute
them all using slave threads or processes.Modifier and Type | Field and Description |
---|---|
static QueueableResourceCompiler |
NONE |
Modifier and Type | Method and Description |
---|---|
java.io.File |
compileOutputFor(CompileResourceRequest request)
Obtains the file that will receive the compilation output of a given file.
|
void |
end()
End the current batch of request.
|
void |
start()
Start a new queueing request for compile activities.
|
compile
static final QueueableResourceCompiler NONE
void start()
ResourceCompiler.compile(CompileResourceRequest)
will be part of the same batch of requests.void end() throws java.lang.InterruptedException
ResourceCompiler.compile(CompileResourceRequest)
have finished before returning.
Each compile request result will be available through the ListenableFuture
returned by ResourceCompiler
.
java.lang.InterruptedException
java.io.File compileOutputFor(@NonNull CompileResourceRequest request)
This method will also create any parent directories needed to hold the output file.
request
- the compile resource request containing the input, output and folder name