org.jboss.mq.il.uil2.msgs
Class SubscribeMsg

java.lang.Object
  extended by org.jboss.mq.il.uil2.msgs.BaseMsg
      extended by org.jboss.mq.il.uil2.msgs.SubscribeMsg
All Implemented Interfaces:
Runnable

public class SubscribeMsg
extends BaseMsg

Version:
$Revision: 57198 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jboss.mq.il.uil2.msgs.BaseMsg
error, msgID, msgType
 
Constructor Summary
SubscribeMsg()
           
SubscribeMsg(Subscription sub)
           
 
Method Summary
 Subscription getSubscription()
           
 void read(ObjectInputStream in)
          Read the hasError flag and optionally the error.
 void trimReply()
          Trim the message when replying
 void write(ObjectOutputStream out)
          Write the msgType, msgID, hasError flag and optionally the error
 
Methods inherited from class org.jboss.mq.il.uil2.msgs.BaseMsg
createMsg, equals, getError, getMsgID, getMsgType, hashCode, run, setError, setHandler, setMsgID, setUseJMSServerMsgIDs, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubscribeMsg

public SubscribeMsg()

SubscribeMsg

public SubscribeMsg(Subscription sub)
Method Detail

getSubscription

public Subscription getSubscription()

trimReply

public void trimReply()
Description copied from class: BaseMsg
Trim the message when replying

Overrides:
trimReply in class BaseMsg

write

public void write(ObjectOutputStream out)
           throws IOException
Description copied from class: BaseMsg
Write the msgType, msgID, hasError flag and optionally the error

Overrides:
write in class BaseMsg
Throws:
IOException

read

public void read(ObjectInputStream in)
          throws IOException,
                 ClassNotFoundException
Description copied from class: BaseMsg
Read the hasError flag and optionally the error. This method is not a complete analog of write because the SocketManager read task reads the msgType and msgID off of the socket.

Overrides:
read in class BaseMsg
Throws:
IOException
ClassNotFoundException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.