org.jboss.jms.client
Class JBossMessageProducer
java.lang.Object
org.jboss.jms.client.JBossMessageProducer
- All Implemented Interfaces:
- java.io.Serializable
public class JBossMessageProducer
- extends java.lang.Object
- implements java.io.Serializable
- Version:
- $Revision: 6821 $
$Id: JBossMessageProducer.java 6821 2009-05-16 13:23:49Z gaohoward $
- Author:
- Ovidiu Feodorov, Tim Fox, Howard Gao
- See Also:
- Serialized Form
Method Summary |
void |
close()
|
void |
disableOrderingGroup()
Disables the ordering group capability of the producer. |
void |
enableOrderingGroup(java.lang.String ogrpName)
Lets the Producer send Ordering Group Messages. |
ProducerDelegate |
getDelegate()
|
int |
getDeliveryMode()
|
Destination |
getDestination()
|
boolean |
getDisableMessageID()
|
boolean |
getDisableMessageTimestamp()
|
int |
getPriority()
|
Queue |
getQueue()
|
long |
getTimeToLive()
|
Topic |
getTopic()
|
void |
publish(Message message)
|
void |
publish(Message message,
int deliveryMode,
int priority,
long timeToLive)
|
void |
publish(Topic topic,
Message message)
|
void |
publish(Topic topic,
Message message,
int deliveryMode,
int priority,
long timeToLive)
|
void |
send(Destination destination,
Message message)
|
void |
send(Destination destination,
Message m,
int deliveryMode,
int priority,
long timeToLive)
|
void |
send(Message message)
|
void |
send(Message message,
int deliveryMode,
int priority,
long timeToLive)
|
void |
setDeliveryMode(int deliveryMode)
|
void |
setDisableMessageID(boolean value)
|
void |
setDisableMessageTimestamp(boolean value)
|
void |
setPriority(int defaultPriority)
|
void |
setTimeToLive(long timeToLive)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
delegate
protected ProducerDelegate delegate
JBossMessageProducer
public JBossMessageProducer(ProducerDelegate delegate)
setDisableMessageID
public void setDisableMessageID(boolean value)
throws JMSException
- Throws:
JMSException
getDisableMessageID
public boolean getDisableMessageID()
throws JMSException
- Throws:
JMSException
setDisableMessageTimestamp
public void setDisableMessageTimestamp(boolean value)
throws JMSException
- Throws:
JMSException
getDisableMessageTimestamp
public boolean getDisableMessageTimestamp()
throws JMSException
- Throws:
JMSException
setDeliveryMode
public void setDeliveryMode(int deliveryMode)
throws JMSException
- Throws:
JMSException
getDeliveryMode
public int getDeliveryMode()
throws JMSException
- Throws:
JMSException
setPriority
public void setPriority(int defaultPriority)
throws JMSException
- Throws:
JMSException
getPriority
public int getPriority()
throws JMSException
- Throws:
JMSException
setTimeToLive
public void setTimeToLive(long timeToLive)
throws JMSException
- Throws:
JMSException
getTimeToLive
public long getTimeToLive()
throws JMSException
- Throws:
JMSException
getDestination
public Destination getDestination()
throws JMSException
- Throws:
JMSException
close
public void close()
throws JMSException
- Throws:
JMSException
send
public void send(Message message)
throws JMSException
- Throws:
JMSException
send
public void send(Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException
- Parameters:
timeToLive
- - 0 means never expire.
- Throws:
JMSException
send
public void send(Destination destination,
Message message)
throws JMSException
- Throws:
JMSException
send
public void send(Destination destination,
Message m,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException
- Throws:
JMSException
getTopic
public Topic getTopic()
throws JMSException
- Throws:
JMSException
publish
public void publish(Message message)
throws JMSException
- Throws:
JMSException
publish
public void publish(Topic topic,
Message message)
throws JMSException
- Throws:
JMSException
publish
public void publish(Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException
- Throws:
JMSException
publish
public void publish(Topic topic,
Message message,
int deliveryMode,
int priority,
long timeToLive)
throws JMSException
- Throws:
JMSException
getQueue
public Queue getQueue()
throws JMSException
- Throws:
JMSException
enableOrderingGroup
public void enableOrderingGroup(java.lang.String ogrpName)
throws JMSException
- Lets the Producer send Ordering Group Messages.
This methods makes the producer to be able to send messages in an ordering
group named by orgpName. If the ogrpName is null, the group name
will be automatically generated. By default a newly created producer
has this feature disabled.
Calling this method will override the group name set by previous call, if any.
Users should make sure the uniqueness of the name if they supply one themselves
across the JMS server domain. Auto-generated names always are guaranteed to be
unique.
- Parameters:
ogrpName
- the name of the group or null for an auto-generated name.
- Throws:
JMSException
disableOrderingGroup
public void disableOrderingGroup()
throws JMSException
- Disables the ordering group capability of the producer.
After this method is called, the producer no longer sends out
ordering group messages.
- Throws:
JMSException
getDelegate
public ProducerDelegate getDelegate()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2006 JBoss Inc. All Rights Reserved.