public static final class LocalConverter.Builder extends Object
LocalConverter.
Note: This builder is not thread safe.
| Modifier and Type | Field and Description |
|---|---|
protected File |
baseFolder |
protected int |
corePoolSize |
static int |
DEFAULT_CORE_POOL_SIZE |
static long |
DEFAULT_KEEP_ALIVE_TIME |
static int |
DEFAULT_MAXIMUM_POOL_SIZE |
static long |
DEFAULT_PROCESS_TIME_OUT
The default time out for external processes.
|
protected long |
keepAliveTime |
protected int |
maximumPoolSize |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
assertNumericArgument(long arg0,
boolean arg1) |
protected static void |
assertNumericArgument(long arg0,
boolean arg1,
long arg2) |
T |
baseFolder(File arg0) |
IConverter |
build() |
LocalConverter.Builder |
disable(Class<? extends IExternalConverter> externalConverter)
Enables the given
IExternalConverter. |
LocalConverter.Builder |
enable(Class<? extends IExternalConverter> externalConverter)
Enables the given
IExternalConverter. |
File |
getBaseFolder() |
Map<Class<? extends IExternalConverter>,Boolean> |
getConverterConfiguration()
Returns a map of explicitly enabled or disabled converters where the mapped value represents a boolean
that indicates if a converter was enabled or disabled.
|
int |
getCorePoolSize() |
long |
getKeepAliveTime() |
int |
getMaximumPoolSize() |
long |
getProcessTimeout()
Returns the specified process time out in milliseconds.
|
protected File |
normalizedBaseFolder() |
LocalConverter.Builder |
processTimeout(long processTimeout,
TimeUnit timeUnit)
Specifies a global timeout for external processes.
|
T |
workerPool(int arg0,
int arg1,
long arg2,
TimeUnit arg3) |
public static final long DEFAULT_PROCESS_TIME_OUT
public static final int DEFAULT_CORE_POOL_SIZE
protected int corePoolSize
public static final int DEFAULT_MAXIMUM_POOL_SIZE
protected int maximumPoolSize
public static final long DEFAULT_KEEP_ALIVE_TIME
protected long keepAliveTime
protected File baseFolder
public LocalConverter.Builder processTimeout(long processTimeout, TimeUnit timeUnit)
processTimeout - The process timeout.timeUnit - The time unit of the specified process timeout.public LocalConverter.Builder enable(Class<? extends IExternalConverter> externalConverter)
IExternalConverter. Any converter that is shipped with
this library is discovered automatically from the class path and does not need to be enabled explicitly.externalConverter - The converter to be enabled.public LocalConverter.Builder disable(Class<? extends IExternalConverter> externalConverter)
IExternalConverter. Any converter that is shipped with
this library is discovered automatically but can be disabled by invoking this method.externalConverter - The converter to be disabled.public IConverter build()
public long getProcessTimeout()
public Map<Class<? extends IExternalConverter>,Boolean> getConverterConfiguration()
protected static void assertNumericArgument(long arg0,
boolean arg1)
protected static void assertNumericArgument(long arg0,
boolean arg1,
long arg2)
protected File normalizedBaseFolder()
public File getBaseFolder()
public int getCorePoolSize()
public int getMaximumPoolSize()
public long getKeepAliveTime()
Copyright © 2013–2016. All rights reserved.