Class OptionsUtils
java.lang.Object
io.temporal.internal.common.OptionsUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DurationMerges value from annotation in seconds with option value as Duration.static <G> Gstatic String[]static introundUpToSeconds(Duration duration) Round durations to seconds rounding up.static introundUpToSeconds(Duration duration, Duration defaultValue) Convert milliseconds to seconds rounding up.static byte[]safeGet(byte[] value) static Stringstatic com.google.protobuf.ByteStringtoByteString(byte[] value)
-
Field Details
-
DEFAULT_TASK_START_TO_CLOSE_TIMEOUT
-
SECOND
public static final float SECOND- See Also:
-
EMPTY_BLOB
public static final byte[] EMPTY_BLOB
-
-
Method Details
-
toByteString
public static com.google.protobuf.ByteString toByteString(byte[] value) -
safeGet
public static byte[] safeGet(byte[] value) -
safeGet
-
merge
-
merge
-
merge
-
roundUpToSeconds
-
roundUpToSeconds
Round durations to seconds rounding up. As all timeouts and timers resolution is in seconds ensures that nothing times out or fires before the requested time.
-