1 22 package org.jboss.tm.remoting.interfaces; 23 24 import java.io.Serializable ; 25 26 27 38 public class TxPropagationContext implements Serializable 39 { 40 static final long serialVersionUID = 88513087659796235L; 41 42 private static String thisClassName; 43 44 static { 45 thisClassName = TxPropagationContext.class.getName(); 46 thisClassName = 47 thisClassName.substring(thisClassName.lastIndexOf('.') + 1); 48 } 49 50 public int formatId; 51 public byte[] globalId; 52 public int timeout; 53 public Coordinator coordinator; 54 public Terminator terminator; 55 56 public TxPropagationContext(int formatId, 57 byte[] globalId, 58 int timeout, 59 Coordinator coordinator, 60 Terminator terminator) 61 62 { 63 this.formatId = formatId; 64 this.globalId = globalId; 65 this.timeout = timeout; 66 this.coordinator = coordinator; 67 this.terminator = terminator; 68 } 69 70 public TxPropagationContext(int formatId, 71 byte[] globalId, 72 int timeout, 73 Coordinator coordinator) 74 { 75 this(formatId, globalId, timeout, coordinator, null); 76 } 77 78 public String toString() 79 { 80 return thisClassName + "[formatId=" + formatId 81 + ", globalId=" + new String (globalId).trim() 82 + ", timeout=" + timeout + "]"; 83 } 84 85 } 86 | Popular Tags |