Current section
Files
Jump to
Current section
Files
src/strategy/runtime/runtime_low_strategy.erl
%%%-------------------------------------------------------------------
%% @doc Runtime strategy that elects the node with the lowest
%% runtime as leader.
%% @end
%%%-------------------------------------------------------------------
-module(runtime_low_strategy).
%%--------------------------------------------------------------------
%% Behaviours
%%--------------------------------------------------------------------
-behaviour(strategy_behaviour).
%%--------------------------------------------------------------------
%% Exported API
%%--------------------------------------------------------------------
-export([elect/0]).
%%--------------------------------------------------------------------
%% Exported functions
%%--------------------------------------------------------------------
%% @doc Starts the election process.
-spec elect() -> Leader :: strategy_behaviour:leader().
elect() ->
runtime_strategy_base:elect(low).