summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-08-25 10:17:20 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-08-25 10:17:20 +0100
commitf9623dbc4ef6a920922a075ced476677b94cea3a (patch)
tree0dda6da82ca38330a8e3ed910edf6c42baf92412
parentd6577c86146aadfecea3b661ad68e1aaca0fadd4 (diff)
downloadrabbitmq-server-f9623dbc4ef6a920922a075ced476677b94cea3a.tar.gz
updated docs
-rw-r--r--src/gen_server2.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl
index 5df3c6ab..c8bae9cc 100644
--- a/src/gen_server2.erl
+++ b/src/gen_server2.erl
@@ -16,10 +16,12 @@
%% The original code could reorder messages when communicating with a
%% process on a remote node that was not currently connected.
%%
-%% 4) The new functions gen_server2:pcall/3, pcall/4, and pcast/3
-%% allow callers to attach priorities to requests. Requests with
-%% higher priorities are processed before requests with lower
-%% priorities. The default priority is 0.
+%% 4) The callback module can optionally implement prioritise_call/3,
+%% prioritise_cast/2 and prioritise_info/2. These functions take
+%% Message, From and State or just Message and State and return a
+%% single integer representing the priority attached to the message.
+%% Messages with higher priorities are processed before requests with
+%% lower priorities. The default priority is 0.
%%
%% 5) The callback module can optionally implement
%% handle_pre_hibernate/1 and handle_post_hibernate/1. These will be