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 byte[] |
EMPTY_BLOB |
static float |
SECOND |
Modifier and Type | Method and Description |
---|---|
static <G> G |
merge(G value,
G overrideValueIfNotDefault,
java.lang.Class<G> type) |
static java.time.Duration |
merge(long aSeconds,
java.time.Duration o)
Merges value from annotation in seconds with option value as Duration.
|
static java.lang.String[] |
merge(java.lang.String[] fromAnnotation,
java.lang.String[] fromOptions) |
static int |
roundUpToSeconds(java.time.Duration duration)
Round durations to seconds rounding up.
|
static int |
roundUpToSeconds(java.time.Duration duration,
java.time.Duration defaultValue)
Convert milliseconds to seconds rounding up.
|
static byte[] |
safeGet(byte[] value) |
static java.lang.String |
safeGet(java.lang.String value) |
static com.google.protobuf.ByteString |
toByteString(byte[] value) |
public static final java.time.Duration DEFAULT_TASK_START_TO_CLOSE_TIMEOUT
public static final float SECOND
public static final byte[] EMPTY_BLOB
public static com.google.protobuf.ByteString toByteString(byte[] value)
public static byte[] safeGet(byte[] value)
public static java.lang.String safeGet(java.lang.String value)
public static <G> G merge(G value, G overrideValueIfNotDefault, java.lang.Class<G> type)
public static java.time.Duration merge(long aSeconds, java.time.Duration o)
public static java.lang.String[] merge(java.lang.String[] fromAnnotation, java.lang.String[] fromOptions)
public static int roundUpToSeconds(java.time.Duration duration, java.time.Duration defaultValue)
public static int roundUpToSeconds(java.time.Duration duration)