1 3 package org.jgroups.protocols; 4 5 6 7 import org.jgroups.Event; 8 import org.jgroups.stack.RpcProtocol; 9 10 11 12 15 public class RpcProtocolEXAMPLE extends RpcProtocol { 16 17 public String getName() {return "RpcProtocolEXAMPLE";} 18 19 20 21 22 23 24 25 27 public void foo() {} 28 public Object bar(int a, int b) {return null;} 29 30 31 32 33 34 35 36 37 43 public boolean handleUpEvent(Event evt) {return true;} 44 45 46 52 public boolean handleDownEvent(Event evt) {return true;} 53 54 55 56 } 57 | Popular Tags |