org.jboss.messaging.core.cluster
Interface GroupCoordinator


public interface GroupCoordinator

A GroupCoordinator

Author:
Tim Fox

Method Summary
 java.util.List<java.lang.Integer> getMembers()
           
 java.lang.Object join(int id, StateHandler handler)
          Join the cluster with the specified id
 void leave(int id)
           
 void registerHandler(GroupHandler handler)
           
 void sendToAll(ClusterMessage request, boolean sychronous)
           
 void unregisterHandler(GroupHandler handler)
           
 

Method Detail

join

java.lang.Object join(int id,
                      StateHandler handler)
                      throws java.lang.Exception
Join the cluster with the specified id

Parameters:
id -
Returns:
The state
Throws:
java.lang.Exception

leave

void leave(int id)
           throws java.lang.Exception
Throws:
java.lang.Exception

sendToAll

void sendToAll(ClusterMessage request,
               boolean sychronous)
               throws java.lang.Exception
Throws:
java.lang.Exception

getMembers

java.util.List<java.lang.Integer> getMembers()

registerHandler

void registerHandler(GroupHandler handler)

unregisterHandler

void unregisterHandler(GroupHandler handler)


Copyright © 2006 JBoss Inc. All Rights Reserved.