Joram 5.0.9

org.objectweb.joram.kclient
Class ConsumerMessages

java.lang.Object
  extended by org.objectweb.joram.kclient.AbstractMessage
      extended by org.objectweb.joram.kclient.AbstractReply
          extended by org.objectweb.joram.kclient.ConsumerMessages
All Implemented Interfaces:
Streamable

public final class ConsumerMessages
extends AbstractReply

A ConsumerMessages is used by a proxy for sending messages to a consumer.


Field Summary
 
Fields inherited from class org.objectweb.joram.kclient.AbstractReply
correlationId
 
Fields inherited from class org.objectweb.joram.kclient.AbstractMessage
ACTIVATE_CONSUMER_REQUEST, classid, classnames, CNX_CLOSE_REPLY, CNX_CLOSE_REQUEST, CNX_CONNECT_REPLY, CNX_CONNECT_REQUEST, CNX_START_REQUEST, CNX_STOP_REQUEST, CONSUMER_ACK_REQUEST, CONSUMER_CLOSE_SUB_REQUEST, CONSUMER_DENY_REQUEST, CONSUMER_MESSAGES, CONSUMER_RECEIVE_REQUEST, CONSUMER_SUB_REQUEST, CONSUMER_UNSUB_REQUEST, MOM_EXCEPTION_REPLY, NULL_CLASS_ID, PRODUCER_MESSAGES, SERVER_REPLY, SESS_ACK_REQUEST, SESS_DENY_REQUEST
 
Constructor Summary
ConsumerMessages()
          Constructs an empty ConsumerMessages instance.
 
Method Summary
 java.lang.String comesFrom()
          Returns the name of the queue or the subscription the messages come from.
protected  int getClassId()
           
 int getMessageCount()
           
 java.util.Vector getMessages()
          Returns the messages to deliver.
 boolean getQueueMode()
          Returns true if the messages come from a queue.
 void readFrom(InputXStream is)
          The object implements the readFrom method to restore its contents from the input stream.
 
Methods inherited from class org.objectweb.joram.kclient.AbstractReply
getCorrelationId, toString, writeTo
 
Methods inherited from class org.objectweb.joram.kclient.AbstractMessage
read, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsumerMessages

public ConsumerMessages()
Constructs an empty ConsumerMessages instance.

Method Detail

getClassId

protected int getClassId()
Specified by:
getClassId in class AbstractMessage

getMessages

public java.util.Vector getMessages()
Returns the messages to deliver.


getMessageCount

public int getMessageCount()

comesFrom

public java.lang.String comesFrom()
Returns the name of the queue or the subscription the messages come from.


getQueueMode

public boolean getQueueMode()
Returns true if the messages come from a queue.


readFrom

public void readFrom(InputXStream is)
              throws java.io.IOException
The object implements the readFrom method to restore its contents from the input stream.

Specified by:
readFrom in interface Streamable
Overrides:
readFrom in class AbstractReply
Parameters:
is - the stream to read data from in order to restore the object
Throws:
java.io.IOException

Joram 5.0.9

Copyright © 2005 Scalagent - All rights reserved