public final class OptionsUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.time.Duration |
DEFAULT_TASK_START_TO_CLOSE_TIMEOUT |
static float |
SECOND |
Modifier and Type | Method and Description |
---|---|
static <G> G |
merge(G annotation,
G options,
java.lang.Class<G> type)
Merges value from annotation and option.
|
static java.time.Duration |
merge(long aSeconds,
java.time.Duration o)
Merges value from annotation in seconds with option value as Duration.
|
static java.time.Duration |
roundUpToSeconds(java.time.Duration duration)
Round durations to seconds rounding up.
|
static java.time.Duration |
roundUpToSeconds(java.time.Duration duration,
java.time.Duration defaultValue)
Convert milliseconds to seconds rounding up.
|
public static final java.time.Duration DEFAULT_TASK_START_TO_CLOSE_TIMEOUT
public static final float SECOND
public static <G> G merge(G annotation, G options, java.lang.Class<G> type)
public static java.time.Duration merge(long aSeconds, java.time.Duration o)
public static java.time.Duration roundUpToSeconds(java.time.Duration duration, java.time.Duration defaultValue)
public static java.time.Duration roundUpToSeconds(java.time.Duration duration)