wpool_fsm_process

Decorator over gen_fsm that lets wpool_pool         control certain aspects of the execution.

Decorator over gen_fsm that lets wpool_pool         control certain aspects of the execution

Types


    

from() = {pid(), reference()}

    

fsm_state() = atom()

    

state() =
            #state{name = atom(),
                   mod = atom(),
                   state = term(),
                   options =
                       [{time_checker | queue_manager, atom()} |
                        wpool:option()],
                   fsm_state = fsm_state()}

Functions


start_link(Name::name() (see module wpool), Module::module(), InitArgs::term(), Options::[option() (see module wpool)]) -> {ok, pid()} | ignore | {error, {already_started, pid()} | term()}

Starts a named process

send_event(Process::name() (see module wpool) | pid(), Event::term()) -> term()

 

sync_send_event(Process::name() (see module wpool) | pid(), Event::term()) -> term()

 

sync_send_event(Process::name() (see module wpool) | pid(), Event::term(), Timeout::timeout()) -> term()

 

send_all_state_event(Process::name() (see module wpool) | pid(), Event::term()) -> term()

 

sync_send_all_state_event(Process::name() (see module wpool) | pid(), Event::term()) -> term()

 

sync_send_all_state_event(Process::name() (see module wpool) | pid(), Event::term(), Timeout::timeout()) -> term()

 

cast_call(Process::name() (see module wpool) | pid(), From::from(), Event::term()) -> ok

format_status(Opt::normal | terminate, X2::list()) -> term()

 

handle_event(Event::term(), StateName::fsm_state(), StateData::state()) -> {next_state, dispatch_state, state()} | {stop, term(), state()}

 

handle_sync_event(Event::term(), From::from(), StateName::fsm_state(), StateData::state()) -> {reply, term(), dispatch_state, state()} | {next_state, dispatch_state, state()} | {stop, term(), state()}

 

dispatch_state(Event::term(), StateData::state()) -> {next_state, dispatch_state, state()} | {stop, term(), state()}

 

dispatch_state(Event::term(), From::from(), StateData::state()) -> {next_state, dispatch_state, state()} | {next_state, dispatch_state, state(), timeout()} | {reply, term(), dispatch_state, state()} | {reply, term(), dispatch_state, state(), timeout()} | {stop, term(), term(), state()} | {stop, term(), state()}

 
Felipe Ripoll ferigis@gmail.com