Joram 5.0.9

org.objectweb.joram.kclient
Class ProducerMessages

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

public final class ProducerMessages
extends AbstractRequest

A ProducerMessages instance is sent by a MessageProducer when sending messages.


Field Summary
 
Fields inherited from class org.objectweb.joram.kclient.AbstractRequest
requestId, target
 
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
ProducerMessages(java.lang.String dest)
          Constructs a ProducerMessages instance.
ProducerMessages(java.lang.String dest, Message msg)
          Constructs a ProducerMessages instance carrying a single message.
 
Method Summary
 void addMessage(Message msg)
          Adds a message to deliver.
 void addMessages(java.util.Vector msgs)
          Adds messages to deliver.
protected  int getClassId()
           
 void setAsyncSend(boolean b)
           
 void writeTo(OutputXStream os)
          The object implements the writeTo method to write its contents to the output stream.
 
Methods inherited from class org.objectweb.joram.kclient.AbstractRequest
getRequestId, readFrom, setRequestId, toString
 
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

ProducerMessages

public ProducerMessages(java.lang.String dest)
Constructs a ProducerMessages instance.

Parameters:
dest - Name of the destination the messages are sent to.

ProducerMessages

public ProducerMessages(java.lang.String dest,
                        Message msg)
Constructs a ProducerMessages instance carrying a single message.

Parameters:
dest - Name of the destination the messages are sent to.
msg - Message to carry.
Method Detail

getClassId

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

setAsyncSend

public void setAsyncSend(boolean b)

addMessage

public void addMessage(Message msg)
Adds a message to deliver.


addMessages

public void addMessages(java.util.Vector msgs)
Adds messages to deliver.


writeTo

public void writeTo(OutputXStream os)
             throws java.io.IOException
The object implements the writeTo method to write its contents to the output stream.

Specified by:
writeTo in interface Streamable
Overrides:
writeTo in class AbstractRequest
Parameters:
os - the stream to write the object to
Throws:
java.io.IOException

Joram 5.0.9

Copyright © 2005 Scalagent - All rights reserved