1 23 package fr.dyade.aaa.agent; 24 25 import java.io.IOException ; 26 27 31 public class JGroupsAckMsg implements java.io.Serializable { 32 String name = null; 33 int stamp; 34 boolean isPersistent; 35 36 public JGroupsAckMsg(Message message) { 37 this.name = message.toStringId(); 38 this.stamp = message.getStamp(); 39 this.isPersistent = message.isPersistent(); 40 } 41 42 45 void delete() throws IOException { 46 if (isPersistent) { 47 AgentServer.getTransaction().delete(name); 48 } 49 } 50 51 int getStamp() { 52 return stamp; 53 } 54 55 public String toString() { 56 StringBuffer strBuf = new StringBuffer (); 57 58 strBuf.append("(").append(super.toString()); 59 strBuf.append(",name=").append(name); 60 strBuf.append(",stamp=").append(stamp); 61 strBuf.append(")"); 62 63 return strBuf.toString(); 64 } 65 } 66 | Popular Tags |