add handle_cast to the gen_server

add handle_cast to the poller.erl