cmeiklejohn / riak_pg

Distributed process groups with riak_core.

Home Page:https://github.com/cmeiklejohn/riak_pg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Riak PG

Overview

Distributed process groups with riak_core.

Usage

Join a process to a group (no need to pre-declare)

join(term(), pid()) -> ok | {error, timeout}.

What about removing?

leave(term(), pid()) -> ok | {error, timeout}.

You can delete process groups.

delete(term()) -> ok | {error, timeout}.

You can also return the members, local members or connected members of a group.

members(term()) -> {ok, list(pid()) | {error, timeout}.
local_members(term()) -> {ok, list(pid()) | {error, timeout}.
connected_members(term()) -> {ok, list(pid()) | {error, timeout}.

You can list the groups that have been created and currently have members.

groups() -> {ok, list(term())} | {error, timeout}

Copyright

Copyright (C) 2013 Christopher Meiklejohn

About

Distributed process groups with riak_core.

https://github.com/cmeiklejohn/riak_pg

License:Apache License 2.0


Languages

Language:Erlang 83.1%Language:Shell 13.4%Language:Makefile 3.5%