Module s2_strats

Simple supervision strategies.

Description

Simple supervision strategies.

Copyright 2011-2013 Klarna AB

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Index

permanent_worker_spec/1
permanent_worker_spec/2
supervisor_spec/1
supervisor_spec/2
supervisor_supervisor_strat/1Return our default spec for supervisors which supervise other supervisors.
transient_worker_spec/1
transient_worker_spec/2
worker_supervisor_strat/1Return our default spec for supervisors which supervise workers.

Function Details

permanent_worker_spec/1

permanent_worker_spec(M) -> any()

permanent_worker_spec/2

permanent_worker_spec(M, A) -> any()

supervisor_spec/1

supervisor_spec(M) -> any()

supervisor_spec/2

supervisor_spec(M, A) -> any()

supervisor_supervisor_strat/1

supervisor_supervisor_strat(Specs) -> any()

Return our default spec for supervisors which supervise other supervisors. Propagates crashes upwards in the tree.

transient_worker_spec/1

transient_worker_spec(M) -> any()

transient_worker_spec/2

transient_worker_spec(M, A) -> any()

worker_supervisor_strat/1

worker_supervisor_strat(Specs) -> any()

Return our default spec for supervisors which supervise workers. Propagates crashes which occur more than four times per hour upwards.


Generated by EDoc, Mar 14 2025, 16:51:43.