View Source locus_mmdb_tree_walk_manager (locus v2.3.7)

Link to this section Summary

Link to this section Types

Specs

counters()

Specs

handle()

Specs

reply_tag() :: gen_server:reply_tag().

Specs

state() :: #state{}.

Link to this section Functions

Link to this function

code_change(OldVsn, State, Extra)

View Source

Specs

code_change(term(), state() | term(), term()) ->
               {ok, state()} | {error, {cannot_convert_state, term()}}.
Link to this function

handle_call(Request, From, State)

View Source

Specs

handle_call(term(), {pid(), reference()}, state()) ->
               {noreply, state()} |
               {reply, {ok, 0, 1}, state()} |
               {stop, normal, stop, state()} |
               {stop, {unexpected_call, #{request := _, from := {pid(), reference()}}}, state()}.
Link to this function

handle_cast(Request, State)

View Source

Specs

handle_cast(term(), state()) -> {noreply, state()} | {stop, {unexpected_cast, term()}, state()}.
Link to this function

handle_info(Info, State)

View Source

Specs

handle_info(term(), state()) -> {stop, {unexpected_info, term()}, state()}.

Specs

init([counters() | pos_integer(), ...]) -> {ok, state()}.
Link to this function

maybe_give_index(Handle, NodeIndex, Path)

View Source

Specs

maybe_give_index(handle(), non_neg_integer(), pos_integer()) -> boolean().

Specs

new_counters() -> counters().
Link to this function

new_handle(Pid, Counters, Concurrency)

View Source

Specs

new_handle(pid(), counters(), pos_integer()) -> handle().
Link to this function

start_link(Counters, Concurrency)

View Source

Specs

start_link(counters(), pos_integer()) -> {ok, pid()}.

Specs

stop(pid()) -> ok.

Specs

take_index(handle()) -> {ok, non_neg_integer(), pos_integer()} | stop.
Link to this function

terminate(Reason, State)

View Source

Specs

terminate(term(), state()) -> ok.