public static final class ExternalOfficeManager.Builder extends org.jodconverter.core.office.AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<ExternalOfficeManager.Builder>
ExternalOfficeManager.ExternalOfficeManager| Modifier and Type | Method and Description |
|---|---|
@NonNull ExternalOfficeManager |
build() |
@NonNull ExternalOfficeManager.Builder |
connectFailFast(@Nullable Boolean connectFailFast)
Controls whether the manager will "fail fast" if the connection to the external process
fails.
|
@NonNull ExternalOfficeManager.Builder |
connectOnStart(@Nullable Boolean connectOnStart)
Specifies whether a connection must be attempted on
AbstractOfficeManagerPool.start()? If false, a
connection will only be attempted the first time an OfficeTask is executed. |
@NonNull ExternalOfficeManager.Builder |
connectRetryInterval(@Nullable Long connectRetryInterval)
Specifies the delay, in milliseconds, between each try when trying to connect to office.
|
@NonNull ExternalOfficeManager.Builder |
connectTimeout(@Nullable Long connectTimeout)
Specifies the timeout, in milliseconds, after which a connection attempt will fail.
|
@NonNull ExternalOfficeManager.Builder |
hostName(String hostName)
Specifies host name that will be used to communicate with office.
|
@NonNull ExternalOfficeManager.Builder |
maxTasksPerConnection(@Nullable Integer maxTasksPerConnection)
Specifies the maximum number of tasks an office process can execute before reconnecting to
it.
|
@NonNull ExternalOfficeManager.Builder |
pipeNames(String... pipeNames)
Specifies the pipe names that will be used to communicate with office.
|
@NonNull ExternalOfficeManager.Builder |
portNumbers(int... portNumbers)
Specifies the port numbers that will be used to communicate with office.
|
public @NonNull ExternalOfficeManager build()
build in class org.jodconverter.core.office.AbstractOfficeManagerPool.AbstractOfficeManagerPoolBuilder<ExternalOfficeManager.Builder>public @NonNull ExternalOfficeManager.Builder pipeNames(String... pipeNames)
pipeNames - The pipe names to use.public @NonNull ExternalOfficeManager.Builder hostName(String hostName)
hostName - The host name to use.public @NonNull ExternalOfficeManager.Builder portNumbers(int... portNumbers)
portNumbers - The port numbers to use.public @NonNull ExternalOfficeManager.Builder connectOnStart(@Nullable Boolean connectOnStart)
AbstractOfficeManagerPool.start()? If false, a
connection will only be attempted the first time an OfficeTask is executed.
Default: true
connectOnStart - true to connect on start, false otherwise.public @NonNull ExternalOfficeManager.Builder connectTimeout(@Nullable Long connectTimeout)
Default: 120000 (2 minutes)
connectTimeout - the process timeout, in milliseconds.public @NonNull ExternalOfficeManager.Builder connectRetryInterval(@Nullable Long connectRetryInterval)
Default: 250 (0.25 seconds)
connectRetryInterval - the connection retry interval, in milliseconds.public @NonNull ExternalOfficeManager.Builder connectFailFast(@Nullable Boolean connectFailFast)
true, a connection attempt will wait for the task to be completed,
and will throw an exception if the connection to the external process fails. If set to false, the task of connecting to the external process will be submitted and will return
immediately, meaning a faster connecting process. Only error logs will be produced if
anything goes wrong.
Default: false
connectFailFast - true to "fail fast", false otherwise.public @NonNull ExternalOfficeManager.Builder maxTasksPerConnection(@Nullable Integer maxTasksPerConnection)
Default: 1000
maxTasksPerConnection - The new maximum number of tasks an office process can execute.Copyright © 2016 - present; JODConverter.org. All rights reserved.