Liking cljdoc? Tell your friends :D

scarif.testing

Utilities for using scarif in unit tests.

Utilities for using scarif in unit tests.
raw docstring

deref-configuration-sourceclj

(deref-configuration-source derefable)

Returns a PolledConfigurationSource that will expect to read a map by deref'ing the argument.

Returns a PolledConfigurationSource that will expect to read
a map by deref'ing the argument.
sourceraw docstring

init!clj

(init! derefable
       &
       {:keys [poll-frequency url-configuration? system-configuration?
               env-configuration?]
        :or {poll-frequency 1000
             url-configuration? true
             system-configuration? true
             env-configuration? true}})

Initialize Archaius to use a deref'able configuration source.

derefable should be a deref-able value that returns a map of the new configuration (e.g., an atom containing a map).

Other keyword args:

poll-frequency -- frequency to poll your configuration source in milliseconds (default 1000). url-configuration? -- boolean, to use a DynamicURLConfiguration (true) system-configuration? -- boolean, to use a SystemConfiguration (true) env-configuration? -- boolean, to use a EnvironmentConfiguration (true)

Returns the scheduler for the dynamic configuration, which is extended with a triggerNow method, to trigger polling early.

Initialize Archaius to use a deref'able configuration source.

derefable should be a deref-able value that returns a map of the new
configuration (e.g., an atom containing a map).

Other keyword args:

poll-frequency -- frequency to poll your configuration source in milliseconds (default 1000).
url-configuration? -- boolean, to use a DynamicURLConfiguration (true)
system-configuration? -- boolean, to use a SystemConfiguration (true)
env-configuration? -- boolean, to use a EnvironmentConfiguration (true)

Returns the scheduler for the dynamic configuration, which is extended
with a triggerNow method, to trigger polling early.
sourceraw docstring

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

× close