public final class ExternalOfficeManager
extends org.jodconverter.core.office.AbstractOfficeManagerPool<org.jodconverter.local.office.ExternalOfficeManagerPoolEntry>
OfficeManager implementation that uses a pool of external
office processes to execute conversion tasks.
The external Office process needs to be started manually, e.g. from the command line with
soffice -accept="socket,host=127.0.0.1,port=2002;urp;"
Since this implementation does not manage the Office process, it does not support auto-restarting the process if it exits unexpectedly.
It will however auto-reconnect to the external process if the latter is manually restarted.
This OfficeManager implementation basically provides the
same behavior as JODConverter 2.x, including using synchronized blocks for serializing
office operations.
| Modifier and Type | Class and Description |
|---|---|
static class |
ExternalOfficeManager.Builder
A builder for constructing a
ExternalOfficeManager. |
| Modifier and Type | Method and Description |
|---|---|
static @NonNull ExternalOfficeManager.Builder |
builder()
Creates a new builder instance.
|
static @NonNull ExternalOfficeManager |
install()
Creates a new
ExternalOfficeManager with default configuration. |
static @NonNull ExternalOfficeManager |
make()
Creates a new
ExternalOfficeManager with default configuration. |
public static @NonNull ExternalOfficeManager.Builder builder()
public static @NonNull ExternalOfficeManager make()
ExternalOfficeManager with default configuration.ExternalOfficeManager with default configuration.public static @NonNull ExternalOfficeManager install()
ExternalOfficeManager with default configuration. The created manager
will then be the unique instance of the InstalledOfficeManagerHolder class. Note that if the InstalledOfficeManagerHolder class already holds an OfficeManager instance, the owner
of this existing manager is responsible to stopped it.ExternalOfficeManager with default configuration.Copyright © 2022 - present; JODConverter. All rights reserved.