Noizu.Service.Worker.Behaviour behaviour (NoizuLabs Services v0.1.2)
Summary
Types
Link to this type
context()
@type context() :: term()
Link to this type
info()
Link to this type
noreply_response()
Link to this type
options()
@type options() :: term() | Map.t() | nil
Link to this type
ref()
@type ref() :: {:ref, module(), term()} | worker_identifier()
Link to this type
reply_response(response)
Link to this type
response_struct(type)
@type response_struct(type) :: {:ok, type} | {:error, term()}
Link to this type
response_tuple()
Link to this type
state()
@type state() :: Noizu.Service.Worker.State.t()
Link to this type
worker()
@type worker() :: any()
Link to this type
worker_identifier()
@type worker_identifier() :: term()
Callbacks
Link to this callback
__dispatcher__()
@callback __dispatcher__() :: module()
Link to this callback
__pool__()
@callback __pool__() :: module()
Link to this callback
__registry__()
@callback __registry__() :: module()
Link to this callback
crash!(state, context, options)
@callback crash!(state(), context(), options()) :: noreply_response()
Link to this callback
fetch(state, value, context, options)
Link to this callback
hibernate(state, context, options)
@callback hibernate(state(), context(), options()) :: noreply_response()
Link to this callback
init(ref, term, term)
Link to this callback
kill!(state, context, options)
@callback kill!(state(), context(), options()) :: noreply_response()
Link to this callback
load(state, context, options)
@callback load(state(), context(), options()) :: response_struct(state())
Link to this callback
persist!(state, context, options)
Link to this callback
ping(state, context, options)
@callback ping(state(), context(), options()) :: reply_response({:pong, pid()})
Link to this callback
recipient(term)
@callback recipient(term()) :: response_tuple()
Link to this callback
reload!(state, context, options)
Link to this callback
wake!(state, context, options)
@callback wake!(state(), context(), options()) :: reply_response({:pong, pid()})
Functions
Link to this function
handle_call(m, call, from, state)
Link to this function
handle_cast(m, call, state)
Link to this function
handle_info(m, call, state)
Link to this function
persist(m, worker, context, options)
Link to this function
persist_changes(m, state, context, options \\ nil)
Link to this function