1 3 package org.jgroups.protocols; 4 5 6 7 8 import org.jgroups.Event; 9 import org.jgroups.Message; 10 import org.jgroups.stack.MessageProtocol; 11 12 13 14 15 16 17 20 public class MessageProtocolEXAMPLE extends MessageProtocol { 21 22 public String getName() {return "MessageProtocolEXAMPLE";} 23 24 25 28 public Object handle(Message req) { 29 System.out.println("MessageProtocolEXAMPLE.handle(): this method should be overridden !"); 30 return null; 31 } 32 33 34 35 36 42 public boolean handleUpEvent(Event evt) {return true;} 43 44 45 51 public boolean handleDownEvent(Event evt) {return true;} 52 53 54 55 } 56 | Popular Tags |