1 23 package org.objectweb.joram.mom.proxies; 24 25 import fr.dyade.aaa.agent.*; 26 27 public class OpenConnectionNot extends SyncNotification { 28 29 private boolean reliable; 30 31 private int heartBeat; 32 33 public OpenConnectionNot(boolean reliable, 34 int heartBeat) { 35 this.reliable = reliable; 36 this.heartBeat = heartBeat; 37 } 38 39 public void Return(ConnectionContext ctx) { 40 Return(new Object []{ctx}); 41 } 42 43 public final boolean getReliable() { 44 return reliable; 45 } 46 47 public final int getHeartBeat() { 48 return heartBeat; 49 } 50 51 public final Object getConnectionContext() { 52 return getValue(0); 53 } 54 55 63 public StringBuffer toString(StringBuffer output) { 64 output.append('('); 65 super.toString(output); 66 output.append(",reliable=").append(reliable); 67 output.append(",heartBeat=").append(heartBeat); 68 output.append(')'); 69 70 return output; 71 } 72 } 73 | Popular Tags |