Common type definitions General:
Common type definitions General: * Invokable - an invokable (like a function) whose result can be tested for success/failure Resilience: * IBoundedQueueInfo - provides information regarding a bounded queue * ISemaphore - a semaphore interface * ICircuitBreaker - a circuit breaker interface Metrics: * IMetricsRecorder - an interface for metrics event capturing * IMetricsStore - a metrics store interface * SampleMetrics - stats for sample metrics data
(queue-capacity this)
Return maximum capacity of a bounded queue
Return maximum capacity of a bounded queue
(queue-size this)
Return the current size of a bounded queue
Return the current size of a bounded queue
(allow? this)
Return true if operation allowed, false otherwise
Return true if operation allowed, false otherwise
(mark! this status?)
Record operation result as true (success) or false (failure)
Record operation result as true (success) or false (failure)
(minutes this)
Convert duration to number of minutes
Convert duration to number of minutes
(millis this)
Convert duration to number of milliseconds
Convert duration to number of milliseconds
(duration? this)
Return true if valid duration, false otherwise
Return true if valid duration, false otherwise
(nanos this)
Convert duration to number of nanoseconds
Convert duration to number of nanoseconds
(days this)
Convert duration to number of days
Convert duration to number of days
(seconds this)
Convert duration to number of seconds
Convert duration to number of seconds
(micros this)
Convert duration to number of micros
Convert duration to number of micros
(dur-time this)
Return the duration time
Return the duration time
(hours this)
Convert duration to number of hours
Convert duration to number of hours
(dur-unit this)
Return the duration time unit
Return the duration time unit
(fault? this)
Return true if fault is detected, false otherwise
Return true if fault is detected, false otherwise
(record! this)
(record! this v)
Record metrics event. Not guaranteed to be synchronous.
Record metrics event. Not guaranteed to be synchronous.
(get-collector this category name k)
Return metrics collector for given category, name and key
Return metrics collector for given category, name and key
(apply-arguments this args)
Apply arguments as if it is a function
Apply arguments as if it is a function
(apply-noarg this)
Execute as if it is a no-arg function
Execute as if it is a no-arg function
(success-error? this error)
Return true if error indicates success, false otherwise
Return true if error indicates success, false otherwise
(success-result? this result)
Return true if result indicates success, false otherwise
Return true if result indicates success, false otherwise
(reinit! this)
Reset the configuration. Not guaranteed to be synchronous.
Reset the configuration. Not guaranteed to be synchronous.
(retry? this)
Return true to allow retry, false otherwise
Return true to allow retry, false otherwise
(acquire-permit! this)
(acquire-permit! this timeout unit)
Return true if successfully acquired permit, false otherwise
Return true if successfully acquired permit, false otherwise
(count-acquired this)
Return a count of permits in use
Return a count of permits in use
(count-available this)
Return a count of available pemits
Return a count of available pemits
(release-permit! this)
Release permit and return nil
Release permit and return nil
(shutdown! this)
Initiate an orderly shutdown in which no new permits can be acquired
Initiate an orderly shutdown in which no new permits can be acquired
(thread-pool this)
Return the associated ThreadPoolExecutor instance
Return the associated ThreadPoolExecutor instance
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close