Joram 4.3.27

org.objectweb.joram.shared.client
Class ProducerMessages

java.lang.Object
  extended by org.objectweb.joram.shared.client.AbstractJmsRequest
      extended by org.objectweb.joram.shared.client.ProducerMessages
All Implemented Interfaces:
java.io.Serializable

public class ProducerMessages
extends AbstractJmsRequest

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest
target
 
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.
 boolean getAsyncSend()
           
 java.util.Vector getMessages()
          Returns the produced messages.
 void setAsyncSend(boolean b)
           
 void setMessage(Message msg)
          set a message to deliver.
 java.util.Hashtable soapCode()
          Transforms this request into a hashtable of primitive values that can be vehiculated through the SOAP protocol.
static java.lang.Object soapDecode(java.util.Hashtable h)
          Transforms a hastable of primitive values into a ProducerMessages request.
 java.lang.String toString()
           
 
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest
getKey, getRequestId, getTarget, setRequestId, setTarget
 
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

addMessage

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


setMessage

public void setMessage(Message msg)
set a message to deliver.


addMessages

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


getMessages

public java.util.Vector getMessages()
Returns the produced messages.


setAsyncSend

public void setAsyncSend(boolean b)

getAsyncSend

public final boolean getAsyncSend()

soapCode

public java.util.Hashtable soapCode()
Transforms this request into a hashtable of primitive values that can be vehiculated through the SOAP protocol.

Overrides:
soapCode in class AbstractJmsRequest

soapDecode

public static java.lang.Object soapDecode(java.util.Hashtable h)
Transforms a hastable of primitive values into a ProducerMessages request.


toString

public java.lang.String toString()
Overrides:
toString in class AbstractJmsRequest

Joram 4.3.27

Copyright © 2005 Scalagent - All rights reserved