(make-sub spojure)
Return a new isolated configuration for subtransactions (like polling done while blocking). From source spojure copy only the common options, and take defaults for the rest. Also, disable the retry functionality (http errors can be returned from subtransactions and handled by the retry middleware from the main transaction).
Return a new isolated configuration for subtransactions (like polling done while blocking). From source spojure copy only the common options, and take defaults for the rest. Also, disable the retry functionality (http errors can be returned from subtransactions and handled by the retry middleware from the main transaction).
(redo f pred & opts)
Calls f until pred matches its result or the max-attempts limit is reached. Returns the result of the last call to f.
If max-attempts is reached, an ExceptionInfo is returned with message error-msg and the last result of f in the data map.
Calls f until pred matches its result or the max-attempts limit is reached. Returns the result of the last call to f. If max-attempts is reached, an ExceptionInfo is returned with message error-msg and the last result of f in the data map.
(rule-applies status msg rule)
A rule is a number n that has to match http status or a vector [n re] where, in addition, re has to match a substring of msg. If msg is empty and there is a re specified, function returns false.
A rule is a number n that has to match http status or a vector [n re] where, in addition, re has to match a substring of msg. If msg is empty and there is a re specified, function returns false.
(with-log! spj log-fn & {:as keyvals})
Use log-fn to output a log message containing a digest of the spojure object and additional keyvals.
log-fn should be an anonymous function or a fn wrapping the logging macro on the call site of with-log!. Applying the macro in the compilation context of such enclosing function allows the macro to properly capture the logger name from ns and line number from &form.
Use log-fn to output a log message containing a digest of the spojure object and additional keyvals. log-fn should be an anonymous function or a fn wrapping the logging macro on the call site of with-log!. Applying the macro in the compilation context of such enclosing function allows the macro to properly capture the logger name from *ns* and line number from &form.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close