public static final class ExternalOfficeManager.Builder extends org.jodconverter.office.AbstractOfficeManager.AbstractOfficeManagerBuilder<ExternalOfficeManager.Builder>
ExternalOfficeManager.ExternalOfficeManager| Modifier and Type | Method and Description |
|---|---|
ExternalOfficeManager |
build() |
ExternalOfficeManager.Builder |
connectionProtocol(OfficeConnectionProtocol connectionProtocol)
Specifies the connection protocol.
|
ExternalOfficeManager.Builder |
connectOnStart(boolean connectOnStart)
Specifies whether a connection must be attempted on
OfficeManager.start()? If false, a
connection will only be attempted the first time an OfficeTask is executed. |
ExternalOfficeManager.Builder |
connectTimeout(long connectTimeout)
Specifies the timeout, in milliseconds, after which a connection attempt will fail.
|
ExternalOfficeManager.Builder |
pipeName(String pipeName)
Specifies the pipe name that will be use to communicate with office.
|
ExternalOfficeManager.Builder |
portNumber(int portNumber)
Specifies the port number that will be use to communicate with office.
|
ExternalOfficeManager.Builder |
retryInterval(long retryInterval)
Specifies the delay, in milliseconds, between each try when trying to connect to office.
|
public ExternalOfficeManager build()
build in class org.jodconverter.office.AbstractOfficeManager.AbstractOfficeManagerBuilder<ExternalOfficeManager.Builder>public ExternalOfficeManager.Builder connectionProtocol(OfficeConnectionProtocol connectionProtocol)
connectionProtocol - The new protocol to use.public ExternalOfficeManager.Builder pipeName(String pipeName)
pipeName - The pipe name to use.public ExternalOfficeManager.Builder portNumber(int portNumber)
portNumber - The port number to use.public ExternalOfficeManager.Builder connectOnStart(boolean connectOnStart)
OfficeManager.start()? If false, a
connection will only be attempted the first time an OfficeTask is executed.
Default: truw
connectOnStart - true to connect on start, false otherwise.public ExternalOfficeManager.Builder connectTimeout(long connectTimeout)
Default: 120000 (2 minutes)
connectTimeout - the process timeout, in milliseconds.public ExternalOfficeManager.Builder retryInterval(long retryInterval)
Default: 250 (0.25 seconds)
retryInterval - the retry interval, in milliseconds.