core / pragma.utils /
Package pragma.utils #
Types #
Name | Summary |
---|---|
AlertingMutex is an implementation of the Mutex interface that will log a warning if it cannot obtain a lock after 5000 ms. | |
Map class that validates keys on "put" into the map. This is for the deterministic routing that drives the whole Pragma architecture. | |
Algorithm from: https://arxiv.org/ftp/arxiv/papers/1406/1406.2294.pdf. | |
MetrickingMutex is an implementation of the Mutex interface that will log a warning and increment the "pragma.engine.mutex.waitingForLock" metric every 60s if it cannot obtain a lock. | |
Simple wrapper around ProcessBuilder to allow for dependency injection for testing. |
Functions #
Name | Summary |
---|---|
Receive the request as a string. | |
If this string starts with the given prefix (ignoring case), returns a copy of this string with the prefix removed. Otherwise, returns this string. | |
If this string ends with the given suffix (ignoring case), returns a copy of this string with the suffix removed. Otherwise, returns this string. |