org.objectweb.joram.client.connector

Class OutboundProducer

Implemented Interfaces:
javax.jms.MessageProducer
Known Direct Subclasses:
OutboundPublisher, OutboundSender

public class OutboundProducer
extends java.lang.Object
implements javax.jms.MessageProducer

An OutboundProducer instance wraps a JMS producer for a component involved in outbound messaging.

Field Summary

protected MessageProducer
producer
The wrapped JMS producer.
protected OutboundSession
session
The OutboundSession this producer belongs to.

Method Summary

protected void
checkValidity()
Checks the validity of the subscriber instance.
void
close()
Delegates the call to the wrapped producer.
int
getDeliveryMode()
Delegates the call to the wrapped producer.
Destination
getDestination()
Delegates the call to the wrapped producer.
boolean
getDisableMessageID()
Delegates the call to the wrapped producer.
boolean
getDisableMessageTimestamp()
Delegates the call to the wrapped producer.
int
getPriority()
Delegates the call to the wrapped producer.
long
getTimeToLive()
Delegates the call to the wrapped producer.
void
send(Destination dest, Message message)
Delegates the call to the wrapped producer.
void
send(Destination dest, Message message, int deliveryMode, int priority, long timeToLive)
Delegates the call to the wrapped producer.
void
send(Message message)
Delegates the call to the wrapped producer.
void
send(Message message, int deliveryMode, int priority, long timeToLive)
Delegates the call to the wrapped producer.
void
setDeliveryMode(int deliveryMode)
Delegates the call to the wrapped producer.
void
setDisableMessageID(boolean value)
Delegates the call to the wrapped producer.
void
setDisableMessageTimestamp(boolean value)
Delegates the call to the wrapped producer.
void
setPriority(int priority)
Delegates the call to the wrapped producer.
void
setTimeToLive(long timeToLive)
Delegates the call to the wrapped producer.

Field Details

producer

protected MessageProducer producer
The wrapped JMS producer.


session

protected OutboundSession session
The OutboundSession this producer belongs to.

Method Details

checkValidity

protected void checkValidity()
            throws IllegalStateException
Checks the validity of the subscriber instance.


close

public void close()
            throws JMSException
Delegates the call to the wrapped producer.


getDeliveryMode

public int getDeliveryMode()
            throws JMSException
Delegates the call to the wrapped producer.


getDestination

public Destination getDestination()
            throws JMSException
Delegates the call to the wrapped producer.


getDisableMessageID

public boolean getDisableMessageID()
            throws JMSException
Delegates the call to the wrapped producer.


getDisableMessageTimestamp

public boolean getDisableMessageTimestamp()
            throws JMSException
Delegates the call to the wrapped producer.


getPriority

public int getPriority()
            throws JMSException
Delegates the call to the wrapped producer.


getTimeToLive

public long getTimeToLive()
            throws JMSException
Delegates the call to the wrapped producer.


send

public void send(Destination dest,
                 Message message)
            throws JMSException
Delegates the call to the wrapped producer.


send

public void send(Destination dest,
                 Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
            throws JMSException
Delegates the call to the wrapped producer.


send

public void send(Message message)
            throws JMSException
Delegates the call to the wrapped producer.


send

public void send(Message message,
                 int deliveryMode,
                 int priority,
                 long timeToLive)
            throws JMSException
Delegates the call to the wrapped producer.


setDeliveryMode

public void setDeliveryMode(int deliveryMode)
            throws JMSException
Delegates the call to the wrapped producer.


setDisableMessageID

public void setDisableMessageID(boolean value)
            throws JMSException
Delegates the call to the wrapped producer.


setDisableMessageTimestamp

public void setDisableMessageTimestamp(boolean value)
            throws JMSException
Delegates the call to the wrapped producer.


setPriority

public void setPriority(int priority)
            throws JMSException
Delegates the call to the wrapped producer.


setTimeToLive

public void setTimeToLive(long timeToLive)
            throws JMSException
Delegates the call to the wrapped producer.


Copyright B) 2004 Scalagent - All rights reserved