summaryrefslogtreecommitdiff
path: root/src
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
commitbfa69de0abd372b8aa3dbd9d07d3fb2ec738f6e0 (patch)
tree0dda6da82ca38330a8e3ed910edf6c42baf92412 /src
parent3023a0bdeb81a26b1e6729556f76bf5047f6e7c4 (diff)
downloadrabbitmq-server-git-bfa69de0abd372b8aa3dbd9d07d3fb2ec738f6e0.tar.gz
updated docs
Diffstat (limited to 'src')
-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 5df3c6ab3b..c8bae9ccec 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