public abstract static class AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<B extends AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<B>> extends Object
AbstractOfficeManagerPool.AbstractOfficeManagerPool| Modifier and Type | Field and Description |
|---|---|
protected boolean |
install |
protected long |
taskExecutionTimeout |
protected long |
taskQueueTimeout |
protected File |
workingDir |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOfficeManagerPoolBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract @NonNull AbstractOfficeManagerPool |
build()
Creates the manager that is specified by this builder.
|
B |
install()
Specifies whether the office manager that will be created by this builder will then set the
unique instance of the
InstalledOfficeManagerHolder class. |
B |
taskExecutionTimeout(@Nullable Long taskExecutionTimeout)
Specifies the maximum time allowed to process a task.
|
B |
taskQueueTimeout(@Nullable Long taskQueueTimeout)
Specifies the maximum living time of a task in the conversion queue.
|
B |
workingDir(@Nullable File workingDir)
Specifies the directory where temporary files and directories are created.
|
B |
workingDir(@Nullable String workingDir)
Specifies the directory where temporary files and directories are created.
|
protected boolean install
protected File workingDir
protected long taskExecutionTimeout
protected long taskQueueTimeout
protected abstract @NonNull AbstractOfficeManagerPool build()
public B install()
InstalledOfficeManagerHolder class. Note that if the InstalledOfficeManagerHolder class already holds an OfficeManager instance, the
owner of this existing manager is responsible to stopped it.
Default: false
public B workingDir(@Nullable File workingDir)
Default: The system temporary directory as specified by the
java.io.tmpdir system property.
workingDir - The new working directory to set.public B workingDir(@Nullable String workingDir)
Default: The system temporary directory as specified by the
java.io.tmpdir system property.
workingDir - The new working directory to set.public B taskExecutionTimeout(@Nullable Long taskExecutionTimeout)
Default: 120000 (2 minutes)
taskExecutionTimeout - The task execution timeout, in milliseconds.public B taskQueueTimeout(@Nullable Long taskQueueTimeout)
Default: 30000 (30 seconds)
taskQueueTimeout - The task queue timeout, in milliseconds.Copyright © 2016 - present; JODConverter.org. All rights reserved.