KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > MembershipListener


1 // $Id: MembershipListener.java,v 1.2 2004/09/21 14:13:19 belaban Exp $
2

3 package org.jgroups;
4
5
6
7
8 public interface MembershipListener {
9     
10
11     /**
12      Called by JGroups to notify the target object of a change of membership.
13      <b>No long running actions should be done in this callback If some long running action needs to be performed,
14      it should be done in a separate thread
15      */

16     void viewAccepted(View new_view);
17
18
19     /** Called when a member is suspected */
20     void suspect(Address suspected_mbr);
21
22
23     /** Block sending and receiving of messages until viewAccepted() is called */
24     void block();
25
26 }
27
Popular Tags