Index
All Classes and Interfaces|All Packages|Serialized Form
B
- BusinessDays - Class in com.helixframework.time
-
Utility for working with dates and business days.
C
- com.helixframework.time - package com.helixframework.time
- com.helixframework.time.format - package com.helixframework.time.format
- com.helixframework.time.provider - package com.helixframework.time.provider
D
- DateTimeProvider - Class in com.helixframework.time.provider
-
Mockable provider of date and time information.
- DateTimeProvider() - Constructor for class com.helixframework.time.provider.DateTimeProvider
-
Constructs a DateTimeProvider with the system UTC clock.
- DateTimeProvider(Clock) - Constructor for class com.helixframework.time.provider.DateTimeProvider
-
Constructs a DateTimeProvider with the specified clock.
- DateTimeProvider(ZoneId) - Constructor for class com.helixframework.time.provider.DateTimeProvider
-
Constructs a DateTimeProvider with the system clock for the given zone.
- duration(long) - Static method in class com.helixframework.time.Sleep
-
Sleeps for the specified number of milliseconds.
- duration(long, long) - Static method in class com.helixframework.time.Sleep
-
Sleeps for the specified number of milliseconds +/- the jitter window size.
- duration(Duration) - Static method in class com.helixframework.time.Sleep
-
Sleeps for the specified duration.
- duration(Duration, Duration) - Static method in class com.helixframework.time.Sleep
-
Sleeps for the specified duration.
- Durations - Class in com.helixframework.time
-
Utility class for working with time durations.
E
- execute() - Method in interface com.helixframework.time.Timed.TimedFunction
-
Executes the wrapped function.
- execute() - Method in interface com.helixframework.time.Timed.TimedVoidFunction
-
Executes the wrapped function.
- execute() - Method in interface com.helixframework.time.Timeout.FallbackFunction
-
Executes the fallback function.
- execute() - Method in interface com.helixframework.time.Timeout.TimeoutFunction
-
Executes the wrapped function.
- execute(Timed.TimedFunction<T>) - Static method in class com.helixframework.time.Timed
-
Executes the wrapped function and times the execution.
- execute(Timed.TimedFunction<T>, MeterRegistry, String) - Static method in class com.helixframework.time.Timed
-
Executes the given timed function and records the execution time using the provided meter registry.
- execute(Timed.TimedVoidFunction) - Static method in class com.helixframework.time.Timed
-
Executes the wrapped void function and times the execution.
- execute(Timed.TimedVoidFunction, MeterRegistry, String) - Static method in class com.helixframework.time.Timed
-
Executes the given timed void function and records the execution time using the provided meter registry.
- execute(Timeout.TimeoutFunction<T>, Timeout.FallbackFunction<T>, Duration) - Static method in class com.helixframework.time.Timeout
-
Executes the wrapped function with a timeout and fallback.
- execute(Timeout.TimeoutFunction<T>, Duration) - Static method in class com.helixframework.time.Timeout
-
Executes the wrapped function with a timeout.
- executeNoCheck(Timed.TimedFunction<T>) - Static method in class com.helixframework.time.Timed
-
Executes the wrapped function and times the execution.
- executeNoCheck(Timed.TimedFunction<T>, MeterRegistry, String) - Static method in class com.helixframework.time.Timed
-
Executes the given timed function and records the execution time using the provided meter registry.
- executeNoCheck(Timed.TimedVoidFunction) - Static method in class com.helixframework.time.Timed
-
Executes the wrapped void function and times the execution.
- executeNoCheck(Timed.TimedVoidFunction, MeterRegistry, String) - Static method in class com.helixframework.time.Timed
-
Executes the given timed void function and records the execution time using the provided meter registry.
F
- findCurrentWeekBounds() - Static method in class com.helixframework.time.Weeks
-
Finds the current week's start and end dates.
- findWeekBounds(LocalDate) - Static method in class com.helixframework.time.Weeks
-
Determines the start and end dates of the week containing the given date.
- format(Timestamp) - Static method in class com.helixframework.time.format.HelixDateFormat
-
Format
Timestampto string. - format(Instant) - Static method in class com.helixframework.time.format.HelixDateFormat
-
Format
Instantto string. - format(LocalDateTime) - Static method in class com.helixframework.time.format.HelixDateFormat
-
Format
LocalDateTimeto string. - format(ZonedDateTime) - Static method in class com.helixframework.time.format.HelixDateFormat
-
Format
ZonedDateTimeto string. - format(Date) - Static method in class com.helixframework.time.format.HelixDateFormat
-
Format
Dateto string. - format(Date, StringBuffer, FieldPosition) - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
G
- getClock() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Exposes the underlying clock used by this provider.
- getCurrentDate() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current date.
- getCurrentEpochMillisecond() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current epoch millisecond.
- getCurrentEpochSecond() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current epoch second.
- getCurrentInstant() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Get current instant.
- getCurrentLocalDate() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current local date in the provider's zone.
- getCurrentLocalDateTime() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current local date-time in the provider's zone.
- getCurrentOffsetDateTime() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current date-time and offset in the provider's zone.
- getCurrentOffsetTime() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current time and offset in the provider's zone.
- getCurrentZonedDateTime() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current date-time in the provider's timezone.
- getCurrentZonedDateTime(ZoneId) - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current date and time in the specified timezone.
- getCurrentZonedDateTimeUTC() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Gets the current date and time in UTC.
- getDuration() - Method in class com.helixframework.time.Timed.TimedResult
-
Duration of the wrapped function execution in milliseconds.
- getResult() - Method in class com.helixframework.time.Timed.TimedResult
-
Result of the wrapped function.
- getTimeZone() - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
- getZone() - Method in class com.helixframework.time.provider.DateTimeProvider
-
Returns the provider's zone.
H
- HelixDateFormat - Class in com.helixframework.time.format
-
Standard date format for Helix services.
M
- millisFromHumanReadable(String) - Static method in class com.helixframework.time.Durations
-
Converts the supplied human readable time duration into milliseconds.
- millisToHumanReadable(long) - Static method in class com.helixframework.time.Durations
-
Converts the supplied milliseconds value into a human readable form like "X Days X Hours X Minutes X Seconds".
- millisToHumanReadable(long, boolean) - Static method in class com.helixframework.time.Durations
-
Converts the supplied milliseconds value into a human-readable form like "X Days X Hours X Minutes X Seconds".
- millisToHumanReadableShorthand(long) - Static method in class com.helixframework.time.Durations
-
Converts the supplied milliseconds value into a human-readable shorthand form like "X D X H X M X S".
- millisToHumanReadableShorthand(long, boolean) - Static method in class com.helixframework.time.Durations
-
Converts the supplied milliseconds value into a human-readable shorthand form like "X D X H X M X S".
- minus(LocalDate, int) - Static method in class com.helixframework.time.BusinessDays
-
Subtracts business days from specified date.
- minus(LocalDate, int, Optional<Set<LocalDate>>) - Static method in class com.helixframework.time.BusinessDays
-
Subtracts business days from specified date.
P
- parse(String) - Static method in class com.helixframework.time.format.HelixDateFormat
-
Parse date string, in format "2023-03-12T13:15:23 UTC" to
Date. - parse(String, ParsePosition) - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
- parseZonedDateTime(String) - Static method in class com.helixframework.time.format.HelixDateFormat
-
Parse date string, in format "2023-03-12T13:15:23 UTC" to
ZonedDateTime. - plus(LocalDate, int) - Static method in class com.helixframework.time.BusinessDays
-
Adds business days to the specified date.
- plus(LocalDate, int, Optional<Set<LocalDate>>) - Static method in class com.helixframework.time.BusinessDays
-
Adds business days to the specified date.
R
- random(long) - Static method in class com.helixframework.time.Sleep
-
Sleeps for a random duration between 0 and the specified number of milliseconds.
- random(Duration) - Static method in class com.helixframework.time.Sleep
-
Sleeps for a random duration between 0 milliseconds and the specified duration.
S
- set2DigitYearStart(Date) - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
-
Sets the 2-digit year start for this ThreadSafeSimpleDateFormat.
- setCalendar(Calendar) - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
- setDateFormatSymbols(DateFormatSymbols) - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
-
Sets the DateFormatSymbols used by the formatter.
- setLenient(boolean) - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
- setNumberFormat(NumberFormat) - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
- setTimeZone(TimeZone) - Method in class com.helixframework.time.format.ThreadSafeSimpleDateFormat
- Sleep - Class in com.helixframework.time
-
Utility class for sleeping a thread and automatically catching the interrupt.
T
- ThreadSafeSimpleDateFormat - Class in com.helixframework.time.format
-
This class is a thread-safe implementation of the DateFormat class that wraps around a SimpleDateFormat object.
- ThreadSafeSimpleDateFormat(String) - Constructor for class com.helixframework.time.format.ThreadSafeSimpleDateFormat
-
This class is a thread-safe implementation of the DateFormat class that wraps around a SimpleDateFormat object.
- tick(Duration) - Method in class com.helixframework.time.provider.DateTimeProvider
-
Creates a new
DateTimeProviderthat applies a ticking behavior to the underlying clock. - Timed - Class in com.helixframework.time
-
Wrapper function that executes a function and times the execution.
- Timed.TimedFunction<T> - Interface in com.helixframework.time
-
Function that is timed.
- Timed.TimedResult<T> - Class in com.helixframework.time
-
Timing result returned from the wrapped function.
- Timed.TimedVoidFunction - Interface in com.helixframework.time
-
Void function that is timed.
- TimedResult(T, long) - Constructor for class com.helixframework.time.Timed.TimedResult
-
Creaates a new
Timed.TimedResult. - Timeout - Class in com.helixframework.time
-
Wrapper function that adds a timeout to the enclosed logic.
- Timeout.FallbackFunction<T> - Interface in com.helixframework.time
-
Function to execute in the event of a timeout.
- Timeout.TimeoutFunction<T> - Interface in com.helixframework.time
-
Function that adds a timeout to the call.
- toHumanReadable(Duration) - Static method in class com.helixframework.time.Durations
-
Converts the supplied
Durationinto a human-readable form like "X Days X Hours X Minutes X Seconds". - toHumanReadable(Duration, boolean) - Static method in class com.helixframework.time.Durations
-
Converts the supplied
Durationinto a human readable form like "X Days X Hours X Minutes X Seconds". - toHumanReadableShorthand(Duration) - Static method in class com.helixframework.time.Durations
-
Converts the supplied milliseconds value into a human readable shorthand form like "X D X H X M X S".
- toHumanReadableShorthand(Duration, boolean) - Static method in class com.helixframework.time.Durations
-
Converts the supplied
Durationinto a human-readable shorthand form like "X D X H X M X S".
W
- Weeks - Class in com.helixframework.time
-
Utility class for working with weeks.
- withFixedInstant(Instant) - Method in class com.helixframework.time.provider.DateTimeProvider
-
Creates a new
DateTimeProviderusing a fixed instant. - withOffset(Duration) - Method in class com.helixframework.time.provider.DateTimeProvider
-
Creates a new
DateTimeProviderwith the specified offset applied to the underlying clock. - withZone(ZoneId) - Method in class com.helixframework.time.provider.DateTimeProvider
-
Creates a new
DateTimeProviderusing the specified time zone.
All Classes and Interfaces|All Packages|Serialized Form