|
Joram 5.0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.shared.client.AbstractJmsMessage
org.objectweb.joram.shared.client.AbstractJmsRequest
org.objectweb.joram.shared.client.ProducerMessages
public final class ProducerMessages
A ProducerMessages
instance is sent by a
MessageProducer
when sending messages.
Field Summary |
---|
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest |
---|
requestId, target |
Constructor Summary | |
---|---|
ProducerMessages()
Constructs a ProducerMessages instance. |
|
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()
|
protected int |
getClassId()
|
java.util.Vector |
getMessages()
Returns the produced messages. |
void |
readFrom(java.io.InputStream is)
The object implements the readFrom method to restore its contents from the input stream. |
void |
setAsyncSend(boolean b)
|
void |
toString(java.lang.StringBuffer strbuf)
|
void |
writeTo(java.io.OutputStream os)
The object implements the writeTo method to write its contents to the output stream. |
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest |
---|
getRequestId, getTarget, setRequestId, setTarget, toString |
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsMessage |
---|
read, readExternal, soapCode, soapDecode, write, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProducerMessages(java.lang.String dest)
ProducerMessages
instance.
dest
- Name of the destination the messages are sent to.public ProducerMessages(java.lang.String dest, Message msg)
ProducerMessages
instance carrying a single
message.
dest
- Name of the destination the messages are sent to.msg
- Message to carry.public ProducerMessages()
ProducerMessages
instance.
Method Detail |
---|
public void setAsyncSend(boolean b)
public final boolean getAsyncSend()
public java.util.Vector getMessages()
public void addMessage(Message msg)
public void addMessages(java.util.Vector msgs)
protected int getClassId()
getClassId
in class AbstractJmsMessage
public void toString(java.lang.StringBuffer strbuf)
toString
in class AbstractJmsRequest
public void writeTo(java.io.OutputStream os) throws java.io.IOException
writeTo
in interface Streamable
writeTo
in class AbstractJmsRequest
os
- the stream to write the object to
java.io.IOException
public void readFrom(java.io.InputStream is) throws java.io.IOException
readFrom
in interface Streamable
readFrom
in class AbstractJmsRequest
is
- the stream to read data from in order to restore the object
java.io.IOException
|
Joram 5.0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |