Package io.dapr.utils
Class DurationUtils
- java.lang.Object
-
- io.dapr.utils.DurationUtils
-
public class DurationUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description DurationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Duration
convertDurationFromDaprFormat(String valueString)
Converts time from the String format used by Dapr into a Duration.static String
convertDurationToDaprFormat(Duration value)
Converts a Duration to the format used by the Dapr runtime.
-
-
-
Method Detail
-
convertDurationFromDaprFormat
public static Duration convertDurationFromDaprFormat(String valueString)
Converts time from the String format used by Dapr into a Duration.- Parameters:
valueString
- A String representing time in the Dapr runtime's format (e.g. 4h15m50s60ms).- Returns:
- A Duration
-
-