1 22 package org.jboss.mq.il.uil2.msgs; 23 24 import java.io.ObjectOutputStream ; 25 import java.io.IOException ; 26 import java.io.ObjectInputStream ; 27 import javax.jms.Topic ; 28 import javax.jms.Queue ; 29 import org.jboss.mq.SpyDestination; 30 31 35 public class DeleteTemporaryDestMsg extends BaseMsg 36 { 37 private SpyDestination dest; 38 39 public DeleteTemporaryDestMsg() 40 { 41 this(null); 42 } 43 public DeleteTemporaryDestMsg(SpyDestination dest) 44 { 45 super(MsgTypes.m_deleteTemporaryDestination); 46 this.dest = dest; 47 } 48 49 public SpyDestination getDest() 50 { 51 return dest; 52 } 53 public Queue getQueue() 54 { 55 return (Queue ) dest; 57 } 58 public Topic getTopic() 59 { 60 return (Topic ) dest; 62 } 63 64 public void write(ObjectOutputStream out) throws IOException 65 { 66 super.write(out); 67 out.writeObject(dest); 68 } 69 public void read(ObjectInputStream in) throws IOException , ClassNotFoundException 70 { 71 super.read(in); 72 dest = (SpyDestination) in.readObject(); 73 } 74 } 75 | Popular Tags |