Liking cljdoc? Tell your friends :D

preflex.type

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
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
raw docstring

IBoundedQueueInfocljprotocol

queue-capacityclj

(queue-capacity this)

Return maximum capacity of a bounded queue

Return maximum capacity of a bounded queue

queue-sizeclj

(queue-size this)

Return the current size of a bounded queue

Return the current size of a bounded queue
source

ICircuitBreakercljprotocol

allow?clj

(allow? this)

Return true if operation allowed, false otherwise

Return true if operation allowed, false otherwise

mark!clj

(mark! this status?)

Record operation result as true (success) or false (failure)

Record operation result as true (success) or false (failure)
source

IDurationcljprotocol

minutesclj

(minutes this)

Convert duration to number of minutes

Convert duration to number of minutes

millisclj

(millis this)

Convert duration to number of milliseconds

Convert duration to number of milliseconds

duration?clj

(duration? this)

Return true if valid duration, false otherwise

Return true if valid duration, false otherwise

nanosclj

(nanos this)

Convert duration to number of nanoseconds

Convert duration to number of nanoseconds

daysclj

(days this)

Convert duration to number of days

Convert duration to number of days

secondsclj

(seconds this)

Convert duration to number of seconds

Convert duration to number of seconds

microsclj

(micros this)

Convert duration to number of micros

Convert duration to number of micros

dur-timeclj

(dur-time this)

Return the duration time

Return the duration time

hoursclj

(hours this)

Convert duration to number of hours

Convert duration to number of hours

dur-unitclj

(dur-unit this)

Return the duration time unit

Return the duration time unit
source

IFaultDetectorcljprotocol

fault?clj

(fault? this)

Return true if fault is detected, false otherwise

Return true if fault is detected, false otherwise
source

IMetricsRecordercljprotocol

record!clj

(record! this)
(record! this v)

Record metrics event. Not guaranteed to be synchronous.

Record metrics event. Not guaranteed to be synchronous.
source

IMetricsStorecljprotocol

get-collectorclj

(get-collector this category name k)

Return metrics collector for given category, name and key

Return metrics collector for given category, name and key
source

Invokablecljprotocol

apply-argumentsclj

(apply-arguments this args)

Apply arguments as if it is a function

Apply arguments as if it is a function

apply-noargclj

(apply-noarg this)

Execute as if it is a no-arg function

Execute as if it is a no-arg function

success-error?clj

(success-error? this error)

Return true if error indicates success, false otherwise

Return true if error indicates success, false otherwise

success-result?clj

(success-result? this result)

Return true if result indicates success, false otherwise

Return true if result indicates success, false otherwise
source

IReinitializablecljprotocol

reinit!clj

(reinit! this)

Reset the configuration. Not guaranteed to be synchronous.

Reset the configuration. Not guaranteed to be synchronous.
source

IRetryResolvercljprotocol

retry?clj

(retry? this)

Return true to allow retry, false otherwise

Return true to allow retry, false otherwise
source

ISemaphorecljprotocol

acquire-permit!clj

(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-acquiredclj

(count-acquired this)

Return a count of permits in use

Return a count of permits in use

count-availableclj

(count-available this)

Return a count of available pemits

Return a count of available pemits

release-permit!clj

(release-permit! this)

Release permit and return nil

Release permit and return nil

shutdown!clj

(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
source

IThreadPoolcljprotocol

thread-poolclj

(thread-pool this)

Return the associated ThreadPoolExecutor instance

Return the associated ThreadPoolExecutor instance
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close