org.apache.qpid.jms
Interface MessageProducer

All Superinterfaces:
MessageProducer

public interface MessageProducer
extends MessageProducer


Method Summary
 void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, boolean immediate)
           
 void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, boolean mandatory, boolean immediate)
           
 void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, boolean mandatory, boolean immediate, boolean waitUntilSent)
           
 void setEncoding(String encoding)
          Set the default encoding for messages produced by this producer.
 void setMimeType(String mimeType)
          Set the default MIME type for messages produced by this producer.
 
Methods inherited from interface javax.jms.MessageProducer
close, getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
 

Method Detail

setMimeType

void setMimeType(String mimeType)
                 throws JMSException
Set the default MIME type for messages produced by this producer. This reduces the overhead of each message.

Parameters:
mimeType -
Throws:
JMSException

setEncoding

void setEncoding(String encoding)
                 throws UnsupportedEncodingException,
                        JMSException
Set the default encoding for messages produced by this producer. This reduces the overhead of each message.

Parameters:
encoding - the encoding as understood by XXXX how do I specify this?? RG
Throws:
UnsupportedEncodingException - if the encoding is not understood
JMSException

send

void send(Destination destination,
          Message message,
          int deliveryMode,
          int priority,
          long timeToLive,
          boolean immediate)
          throws JMSException
Throws:
JMSException

send

void send(Destination destination,
          Message message,
          int deliveryMode,
          int priority,
          long timeToLive,
          boolean mandatory,
          boolean immediate)
          throws JMSException
Throws:
JMSException

send

void send(Destination destination,
          Message message,
          int deliveryMode,
          int priority,
          long timeToLive,
          boolean mandatory,
          boolean immediate,
          boolean waitUntilSent)
          throws JMSException
Throws:
JMSException


Licensed to the Apache Software Foundation