Index
All Classes|All Packages|Constant Field Values|Serialized Form
A
- action(BeforeEvent<T>, Runnable) - Method in class dev.comfast.experimental.events.EventsManager
-
Embed action between events: "before", "after" and "failed".
- action(BeforeEvent<T>, Supplier<R>) - Method in class dev.comfast.experimental.events.EventsManager
-
Embed action between events: "before", "after" and "failed".
- actionName - Variable in class dev.comfast.experimental.events.model.Event
- actionParams - Variable in class dev.comfast.experimental.events.model.Event
- addError(Throwable, long, long) - Method in class dev.comfast.util.waiter.WaiterStats
- addListener(String, EventListener<T>) - Method in class dev.comfast.experimental.events.EventsManager
-
Add listener to this manager.
- after(AfterEvent<T>) - Method in interface dev.comfast.experimental.events.EventListener
-
Called after event.
- AfterEvent<T> - Class in dev.comfast.experimental.events.model
- AfterEvent(T, String, Object[], StopwatchTime, Object) - Constructor for class dev.comfast.experimental.events.model.AfterEvent
- autoRemove - Variable in class dev.comfast.util.TempFile
B
- before(BeforeEvent<T>) - Method in interface dev.comfast.experimental.events.EventListener
-
Called before event.
- BeforeEvent<T> - Class in dev.comfast.experimental.events.model
-
Event that is called before action.
- BeforeEvent(T, String, Object...) - Constructor for class dev.comfast.experimental.events.model.BeforeEvent
- build() - Method in class dev.comfast.util.waiter.WaiterConfig.WaiterConfigBuilder
- builder() - Static method in class dev.comfast.util.waiter.WaiterConfig
C
- ConfigApi - Class in dev.comfast.experimental.config
- ConfigApi() - Constructor for class dev.comfast.experimental.config.ConfigApi
- ConfigReader - Class in dev.comfast.experimental.config
-
Read config from system properties / appConfig / referenceConfig
- ConfigReader() - Constructor for class dev.comfast.experimental.config.ConfigReader
- configure(UnaryOperator<WaiterConfig.WaiterConfigBuilder>) - Method in class dev.comfast.util.waiter.Waiter
-
Updates waiter config.
- context - Variable in class dev.comfast.experimental.events.model.Event
D
- description - Variable in class dev.comfast.util.waiter.WaiterConfig
- description(String) - Method in class dev.comfast.util.waiter.WaiterConfig.WaiterConfigBuilder
- dev.comfast.experimental.config - package dev.comfast.experimental.config
- dev.comfast.experimental.events - package dev.comfast.experimental.events
- dev.comfast.experimental.events.model - package dev.comfast.experimental.events.model
- dev.comfast.rgx - package dev.comfast.rgx
- dev.comfast.util - package dev.comfast.util
- dev.comfast.util.time - package dev.comfast.util.time
- dev.comfast.util.waiter - package dev.comfast.util.waiter
E
- endTimeNs - Variable in class dev.comfast.util.time.StopwatchTime
- ERR_MSG_MAX_LENGTH - Static variable in class dev.comfast.rgx.RgxMatch
- error - Variable in class dev.comfast.experimental.events.model.FailedEvent
- ErrorKit - Class in dev.comfast.util
-
ErrorKit is a set of useful functions for error handling.
- ErrorKit() - Constructor for class dev.comfast.util.ErrorKit
- Event<T> - Class in dev.comfast.experimental.events.model
-
Base for all Events.
- Event(T, String, Object[]) - Constructor for class dev.comfast.experimental.events.model.Event
- EventListener<T> - Interface in dev.comfast.experimental.events
-
Event listener interface.
- EventsApi - Class in dev.comfast.experimental.events
-
Api for events.
- EventsManager<T> - Class in dev.comfast.experimental.events
-
Manager for events.
F
- failed(FailedEvent<T>) - Method in interface dev.comfast.experimental.events.EventListener
-
Called after event throws exception.
- failed(Throwable) - Method in class dev.comfast.experimental.events.model.BeforeEvent
-
Creates FailedEvent with given error.
- FailedEvent<T> - Class in dev.comfast.experimental.events.model
- FailedEvent(T, String, Object[], StopwatchTime, Throwable) - Constructor for class dev.comfast.experimental.events.model.FailedEvent
- file - Variable in class dev.comfast.util.TempFile
- flags(int) - Method in class dev.comfast.rgx.Rgx
- flat(Map<?, ?>) - Method in class dev.comfast.experimental.config.MapFlatter
- formatDuration(Duration) - Method in class dev.comfast.util.time.TimeFormatter
-
Format any duration into human-friendly format e.g
- formatNanoseconds(long) - Method in class dev.comfast.util.time.TimeFormatter
-
Format any nanoseconds using proper SI unit in human-friendly format e.g
G
- get() - Method in class dev.comfast.rgx.RgxMatch
- get(int) - Method in class dev.comfast.rgx.RgxMatch
- get(String, Class<T>) - Static method in class dev.comfast.experimental.events.EventsApi
-
Creates/gets EventsManager with given name.
- getActionName() - Method in class dev.comfast.experimental.events.model.Event
- getActionParams() - Method in class dev.comfast.experimental.events.model.Event
- getBool(String) - Method in class dev.comfast.experimental.config.ConfigReader
- getContext() - Method in class dev.comfast.experimental.events.model.Event
- getDouble(String) - Method in class dev.comfast.experimental.config.ConfigReader
- getDuration() - Method in class dev.comfast.util.time.StopwatchTime
- getEndTimeNs() - Method in class dev.comfast.util.time.StopwatchTime
- getError() - Method in class dev.comfast.experimental.events.model.FailedEvent
- getLong(String) - Method in class dev.comfast.experimental.config.ConfigReader
- getMillis() - Method in class dev.comfast.util.time.StopwatchTime
- getNanos() - Method in class dev.comfast.util.time.StopwatchTime
- getOrElse(int, String) - Method in class dev.comfast.rgx.RgxMatch
- getOrElse(String) - Method in class dev.comfast.rgx.RgxMatch
- getResult() - Method in class dev.comfast.experimental.events.model.AfterEvent
- getStartTimeNs() - Method in class dev.comfast.util.time.StopwatchTime
- getStartTimestamp() - Method in class dev.comfast.util.time.StopwatchTime
- getStats() - Method in class dev.comfast.util.waiter.WaiterStats
- getStats() - Method in exception dev.comfast.util.waiter.WaitTimeout
- getStopwatch() - Method in class dev.comfast.experimental.events.model.BeforeEvent
- getString(String) - Method in class dev.comfast.experimental.config.ConfigReader
-
Get config value from: System property appConfig.yaml/json/properties referenceConfig.yaml/json/properties
- getTime() - Method in class dev.comfast.experimental.events.model.AfterEvent
- getTime() - Method in class dev.comfast.experimental.events.model.FailedEvent
- getTries() - Method in class dev.comfast.util.waiter.WaiterState
H
- horizontalTable(List<String>, List<List<String>>) - Method in class dev.comfast.util.TerminalGenerator
-
Generates table like:
I
- includeCauseInErrorMessage - Variable in class dev.comfast.util.waiter.WaiterConfig
- includeCauseInErrorMessage(boolean) - Method in class dev.comfast.util.waiter.WaiterConfig.WaiterConfigBuilder
- InvalidEventConfiguration - Exception in dev.comfast.experimental.events
- InvalidEventConfiguration(String) - Constructor for exception dev.comfast.experimental.events.InvalidEventConfiguration
- isEmpty() - Method in class dev.comfast.rgx.RgxMatch
- isPresent() - Method in class dev.comfast.rgx.RgxMatch
- isTruthly(Object) - Static method in class dev.comfast.util.Utils
M
- MapFlatter - Class in dev.comfast.experimental.config
- MapFlatter() - Constructor for class dev.comfast.experimental.config.MapFlatter
- match(String) - Method in class dev.comfast.rgx.Rgx
- matchAll(String) - Method in class dev.comfast.rgx.Rgx
- matchAllAsString(String) - Method in class dev.comfast.rgx.Rgx
- matchAllAsString(String, int) - Method in class dev.comfast.rgx.Rgx
- measure(Runnable) - Static method in class dev.comfast.util.time.Stopwatch
-
Measure time of running given function
N
- nextTry() - Method in class dev.comfast.util.waiter.WaiterState
-
Start new timing loop.
- notifyAfter(AfterEvent<T>) - Method in class dev.comfast.experimental.events.EventsManager
-
Notify all event listeners about failed event.
- notifyBefore(BeforeEvent<T>) - Method in class dev.comfast.experimental.events.EventsManager
-
Notify all event listeners about failed event.
- notifyFailed(FailedEvent<T>) - Method in class dev.comfast.experimental.events.EventsManager
-
Notify all event listeners about failed event.
P
- passed(Object) - Method in class dev.comfast.experimental.events.model.BeforeEvent
-
Creates AfterEvent with given result.
- pattern - Variable in class dev.comfast.rgx.Rgx
- poolingDivider - Variable in class dev.comfast.util.waiter.WaiterConfig
- poolingDivider(long) - Method in class dev.comfast.util.waiter.WaiterConfig.WaiterConfigBuilder
- poolingMaxMs - Variable in class dev.comfast.util.waiter.WaiterConfig
- poolingMaxMs(long) - Method in class dev.comfast.util.waiter.WaiterConfig.WaiterConfigBuilder
- poolingMinMs - Variable in class dev.comfast.util.waiter.WaiterConfig
- poolingMinMs(long) - Method in class dev.comfast.util.waiter.WaiterConfig.WaiterConfigBuilder
R
- read() - Method in class dev.comfast.util.TempFile
-
Read entire file.
- readConfig() - Static method in class dev.comfast.experimental.config.ConfigApi
-
Creates ConfigReader that read all configurations from System properties appConfig.yaml referenceConfig.yaml For example:
- recentError() - Method in class dev.comfast.util.waiter.WaiterStats
- removeListener(String) - Method in class dev.comfast.experimental.events.EventsManager
-
Remove listener by its key
- result - Variable in class dev.comfast.experimental.events.model.AfterEvent
- rethrow(Supplier<T>, String, Object...) - Static method in class dev.comfast.util.ErrorKit
-
Similarly to lombok
SneakyThrows, wraps any checked / unchecked Exception into RuntimeException - rgx(String) - Static method in class dev.comfast.rgx.RgxApi
-
Usage example:
- rgx(String, int) - Static method in class dev.comfast.rgx.RgxApi
-
Use regex with flags
- Rgx - Class in dev.comfast.rgx
- Rgx(String) - Constructor for class dev.comfast.rgx.Rgx
- RgxApi - Class in dev.comfast.rgx
-
Provide fluent interface for common Regex operations.
- RgxApi() - Constructor for class dev.comfast.rgx.RgxApi
- RgxMatch - Class in dev.comfast.rgx
-
Represent one Regex match.
- RgxMatch(String[], String, String) - Constructor for class dev.comfast.rgx.RgxMatch
- RgxNotFound - Exception in dev.comfast.rgx
-
Thrown when regex match not found.
- RgxNotFound(String, Object...) - Constructor for exception dev.comfast.rgx.RgxNotFound
- RgxNotFound(String, Throwable, Object...) - Constructor for exception dev.comfast.rgx.RgxNotFound
S
- sleep(long) - Static method in class dev.comfast.util.Utils
-
Unchecked sleep.
- startTimeNs - Variable in class dev.comfast.util.time.StopwatchTime
- startTimestamp - Variable in class dev.comfast.util.time.StopwatchTime
- Stopwatch - Class in dev.comfast.util.time
-
Class for time measurements.
- Stopwatch() - Constructor for class dev.comfast.util.time.Stopwatch
- Stopwatch(long, long) - Constructor for class dev.comfast.util.time.Stopwatch
- StopwatchTime - Class in dev.comfast.util.time
-
Result of
Stopwatchmeasurement.
T
- table(List<String>, List<List<String>>) - Method in class dev.comfast.util.TerminalGenerator
-
Generates table like:
- TempFile - Class in dev.comfast.util
-
Represents file in default temp directory.
- TempFile(String) - Constructor for class dev.comfast.util.TempFile
- TempFile(String, boolean) - Constructor for class dev.comfast.util.TempFile
- TerminalGenerator - Class in dev.comfast.util
-
Utility class that generates ASCII tables
- TerminalGenerator() - Constructor for class dev.comfast.util.TerminalGenerator
- TerminalGenerator(String) - Constructor for class dev.comfast.util.TerminalGenerator
- TerminalGenerator(String, String, String) - Constructor for class dev.comfast.util.TerminalGenerator
- throwIfEmpty() - Method in class dev.comfast.rgx.RgxMatch
-
Throws Exception with match details if match empty.
- throwIfEmpty(String, Object...) - Method in class dev.comfast.rgx.RgxMatch
- time - Variable in class dev.comfast.experimental.events.model.AfterEvent
- time - Variable in class dev.comfast.experimental.events.model.FailedEvent
- time() - Method in class dev.comfast.util.time.Stopwatch
-
Can be used multiple times to get intermediate times.
- TimeFormatter - Class in dev.comfast.util.time
- TimeFormatter() - Constructor for class dev.comfast.util.time.TimeFormatter
- timeoutMs - Variable in class dev.comfast.util.waiter.WaiterConfig
- timeoutMs(long) - Method in class dev.comfast.util.waiter.WaiterConfig.WaiterConfigBuilder
- toBuilder() - Method in class dev.comfast.util.waiter.WaiterConfig
- toString() - Method in class dev.comfast.experimental.events.model.AfterEvent
- toString() - Method in class dev.comfast.experimental.events.model.Event
- toString() - Method in class dev.comfast.experimental.events.model.FailedEvent
- toString() - Method in class dev.comfast.rgx.Rgx
- toString() - Method in class dev.comfast.util.time.StopwatchTime
- toString() - Method in class dev.comfast.util.waiter.WaiterConfig.WaiterConfigBuilder
- transposeMatrix(List<List<T>>) - Static method in class dev.comfast.util.Utils
- trimString(Object, int) - Static method in class dev.comfast.util.Utils
U
- Utils - Class in dev.comfast.util
- Utils() - Constructor for class dev.comfast.util.Utils
W
- Waiter - Class in dev.comfast.util.waiter
- Waiter() - Constructor for class dev.comfast.util.waiter.Waiter
- Waiter(long) - Constructor for class dev.comfast.util.waiter.Waiter
- WaiterConfig - Class in dev.comfast.util.waiter
- WaiterConfig(long, long, long, long, String, boolean) - Constructor for class dev.comfast.util.waiter.WaiterConfig
- WaiterConfig.WaiterConfigBuilder - Class in dev.comfast.util.waiter
- WaiterState - Class in dev.comfast.util.waiter
-
Handle all timing calculations for Waiter.
- WaiterState(WaiterConfig) - Constructor for class dev.comfast.util.waiter.WaiterState
- WaiterStats - Class in dev.comfast.util.waiter
- WaiterStats() - Constructor for class dev.comfast.util.waiter.WaiterStats
- waitFor(Runnable) - Method in class dev.comfast.util.waiter.Waiter
-
Repeat the action till it ends without exception.
- waitFor(Supplier<T>) - Method in class dev.comfast.util.waiter.Waiter
-
Repeat the action till it ends without exception.
- waitForValue(Supplier<T>) - Method in class dev.comfast.util.waiter.Waiter
-
Repeat the action till it returns truthy value.
- WaitTimeout - Exception in dev.comfast.util.waiter
- WaitTimeout(WaiterStats, String) - Constructor for exception dev.comfast.util.waiter.WaitTimeout
- withSystemProp(String, Runnable) - Static method in class dev.comfast.util.Utils
-
Restore system property after func is done.
- write(String) - Method in class dev.comfast.util.TempFile
-
Write content to file.
_
- _fail(String, Object...) - Static method in class dev.comfast.util.ErrorKit
-
Short supplier for RuntimeException, fits to Streams/Optionals
All Classes|All Packages|Constant Field Values|Serialized Form