%%%------------------------------------------------------------------- %% @doc Runtime strategy that elects the node with the highest %% runtime as leader. %% @end %%%------------------------------------------------------------------- -module(runtime_high_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(high).