Liking cljdoc? Tell your friends :D

gen.supervisor


*print-crash-reports*clj


*print-fail-reports*clj


*print-restart-reports*clj


*print-start-reports*clj


*print-stop-reports*clj


createclj

(create &
        {:keys [processes rules linker default-rule name system-exit]
         :or {processes #{}
              rules {}
              default-rule (rule-create)
              linker gen.linker-storage/*linker*
              system-exit false}
         :as args})

PROCESSES is a set of processes, which are supervised. RULES are process->rule map. Rules are created with gen.supervisor/rule-create. LINKER is linker storage for this supervisor. Linker storage is a place, where linker information is stored. It is not linked without running linker. gen.linker-storage/linker by default. If SYSTEM-EXIT is true, program will terminate with (System/exit 0) after supervisor is terminated. Should be used on the main supervisor.

PROCESSES is a set of processes, which are supervised.
RULES are process->rule map. Rules are created with gen.supervisor/rule-create.
LINKER is linker storage for this supervisor. Linker storage is a place, where
linker information is stored. It is not linked without running linker.
gen.linker-storage/*linker* by default.
If SYSTEM-EXIT is true, program will terminate with (System/exit 0) after
supervisor is terminated. Should be used on the main supervisor.
raw docstring

process-addclj

(process-add supervisor process & [rule])

process-removeclj

(process-remove supervisor process)

processesclj

(processes supervisor)

rule-createclj

(rule-create &
             {:keys [important? restarts-everyone? max-restarts in-milliseconds
                     args no-initial-flush]
              :or {important? false
                   restarts-everyone? false
                   max-restarts 0
                   no-initial-flush false}})

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

× close