Copyright © (C) 2015, Alexander Hudich
Behaviours: gen_server.
Authors: Alexander Hudich (alttagil@gmail.com).
start_link/3 | |
init/1 | |
terminate/2 | |
code_change/3 | |
disconnect/1 | |
update_topology/1 | |
get_state/1 | |
get_state_part/1 | |
get_pool/1 | |
get_pool/2 | |
get_pool/4 | |
handle_call/3 | |
handle_cast/2 | |
handle_info/2 |
start_link(Seeds::any(), TopologyOptions::any(), WorkerOptions::any()) -> {ok, Pid::pid()} | ignore | {error, Reason::term()}
init(Args::term()) -> {ok, State::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}} | {ok, State::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}, timeout() | hibernate} | {stop, Reason::term()} | ignore
terminate(Reason::normal | shutdown | {shutdown, term()} | term(), State::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}) -> term()
code_change(OldVsn::term() | {down, term()}, State::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}, Extra::term()) -> {ok, NewState::#topology_state{seeds = any(), self = pid(), type = any(), maxElectionId = any(), setName = any(), setVersion = any(), rp_mode = any(), rp_tags = any(), servers = ets:tid() | atom(), serverSelectionTimeoutMS = any(), localThresholdMS = any(), worker_opts = any(), topology_opts = any(), get_pool_timeout = integer()}} | {error, Reason::term()}
disconnect(Topology) -> any()
update_topology(Topology) -> any()
get_state(Topology) -> any()
get_state_part(Topology) -> any()
get_pool(Topology) -> any()
get_pool(Topology::pid() | atom(), Options::map() | list()) -> {ok, map()} | {error, any()}
get_pool(From, Topology_state, RPMode, Tags) -> any()
handle_call(Request, From, State) -> any()
handle_cast(Request, State) -> any()
handle_info(Info, State) -> any()
Generated by EDoc