1 24 25 package org.objectweb.tribe.gms.protocol; 26 27 import java.util.ArrayList ; 28 29 import org.objectweb.tribe.common.GroupIdentifier; 30 import org.objectweb.tribe.common.Member; 31 import org.objectweb.tribe.gms.GroupMembershipListener; 32 33 39 public class QuitMessage extends GroupMembershipMessage 40 { 41 48 public QuitMessage(GroupIdentifier gid, Member sender) 49 { 50 super(); 51 this.addChunk(sender); 52 this.addChunk(gid); 53 } 54 55 58 public void deliver(GroupMembershipListener listener) 59 { 60 ArrayList chunks = this.getChunks(); 61 listener 62 .quitMember((Member) chunks.get(0), (GroupIdentifier) chunks.get(1)); 63 } 64 65 } | Popular Tags |