org.skyscreamer.nevado.jms
Class NevadoMessageProducer

java.lang.Object
  extended by org.skyscreamer.nevado.jms.NevadoMessageProducer
All Implemented Interfaces:
javax.jms.MessageProducer, javax.jms.QueueSender, javax.jms.TopicPublisher

public class NevadoMessageProducer
extends Object
implements javax.jms.MessageProducer, javax.jms.QueueSender, javax.jms.TopicPublisher

Nevado implementation of a MessageProducer.

Author:
Carter Page

Constructor Summary
NevadoMessageProducer(NevadoSession session, NevadoDestination destination)
           
 
Method Summary
 void close()
           
 int getDeliveryMode()
           
 javax.jms.Destination getDestination()
           
 boolean getDisableMessageID()
           
 boolean getDisableMessageTimestamp()
           
 int getPriority()
           
 javax.jms.Queue getQueue()
           
 long getTimeToLive()
           
 javax.jms.Topic getTopic()
           
 boolean isClosed()
           
 void publish(javax.jms.Message message)
           
 void publish(javax.jms.Message message, int deliveryMode, int priority, long ttl)
           
 void publish(javax.jms.Topic topic, javax.jms.Message message)
           
 void publish(javax.jms.Topic topic, javax.jms.Message message, int deliveryMode, int priority, long ttl)
           
 void send(javax.jms.Destination destination, javax.jms.Message message)
           
 void send(javax.jms.Destination destination, javax.jms.Message message, int deliveryMode, int priority, long ttl)
           
 void send(javax.jms.Message message)
           
 void send(javax.jms.Message message, int deliveryMode, int priority, long ttl)
           
 void send(javax.jms.Queue queue, javax.jms.Message message)
           
 void send(javax.jms.Queue queue, javax.jms.Message message, int deliveryMode, int priority, long ttl)
           
 void setDeliveryMode(int deliveryMode)
           
 void setDisableMessageID(boolean disableMessageID)
           
 void setDisableMessageTimestamp(boolean disableTimestamp)
           
 void setPriority(int priority)
           
 void setTimeToLive(long ttl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NevadoMessageProducer

public NevadoMessageProducer(NevadoSession session,
                             NevadoDestination destination)
                      throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

setDisableMessageID

public void setDisableMessageID(boolean disableMessageID)
                         throws javax.jms.JMSException
Specified by:
setDisableMessageID in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDisableMessageID

public boolean getDisableMessageID()
                            throws javax.jms.JMSException
Specified by:
getDisableMessageID in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setDisableMessageTimestamp

public void setDisableMessageTimestamp(boolean disableTimestamp)
                                throws javax.jms.JMSException
Specified by:
setDisableMessageTimestamp in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDisableMessageTimestamp

public boolean getDisableMessageTimestamp()
                                   throws javax.jms.JMSException
Specified by:
getDisableMessageTimestamp in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

setDeliveryMode

public void setDeliveryMode(int deliveryMode)
                     throws javax.jms.JMSException
Specified by:
setDeliveryMode in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getDeliveryMode

public int getDeliveryMode()
Specified by:
getDeliveryMode in interface javax.jms.MessageProducer

setPriority

public void setPriority(int priority)
                 throws javax.jms.JMSException
Specified by:
setPriority in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getPriority

public int getPriority()
Specified by:
getPriority in interface javax.jms.MessageProducer

setTimeToLive

public void setTimeToLive(long ttl)
                   throws javax.jms.JMSException
Specified by:
setTimeToLive in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getTimeToLive

public long getTimeToLive()
Specified by:
getTimeToLive in interface javax.jms.MessageProducer

getDestination

public javax.jms.Destination getDestination()
                                     throws javax.jms.JMSException
Specified by:
getDestination in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

getQueue

public javax.jms.Queue getQueue()
                         throws javax.jms.JMSException
Specified by:
getQueue in interface javax.jms.QueueSender
Throws:
javax.jms.JMSException

close

public void close()
           throws javax.jms.JMSException
Specified by:
close in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Message message)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.MessageProducer
Specified by:
send in interface javax.jms.QueueSender
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Message message,
                 int deliveryMode,
                 int priority,
                 long ttl)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.MessageProducer
Specified by:
send in interface javax.jms.QueueSender
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Queue queue,
                 javax.jms.Message message)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.QueueSender
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Destination destination,
                 javax.jms.Message message)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Queue queue,
                 javax.jms.Message message,
                 int deliveryMode,
                 int priority,
                 long ttl)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.QueueSender
Throws:
javax.jms.JMSException

send

public void send(javax.jms.Destination destination,
                 javax.jms.Message message,
                 int deliveryMode,
                 int priority,
                 long ttl)
          throws javax.jms.JMSException
Specified by:
send in interface javax.jms.MessageProducer
Throws:
javax.jms.JMSException

isClosed

public boolean isClosed()

getTopic

public javax.jms.Topic getTopic()
                         throws javax.jms.JMSException
Specified by:
getTopic in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

publish

public void publish(javax.jms.Message message)
             throws javax.jms.JMSException
Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

publish

public void publish(javax.jms.Message message,
                    int deliveryMode,
                    int priority,
                    long ttl)
             throws javax.jms.JMSException
Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

publish

public void publish(javax.jms.Topic topic,
                    javax.jms.Message message)
             throws javax.jms.JMSException
Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException

publish

public void publish(javax.jms.Topic topic,
                    javax.jms.Message message,
                    int deliveryMode,
                    int priority,
                    long ttl)
             throws javax.jms.JMSException
Specified by:
publish in interface javax.jms.TopicPublisher
Throws:
javax.jms.JMSException


Copyright © 2012. All Rights Reserved.