BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.jms.extensions
Interface WLMessageProducer


public interface WLMessageProducer
extends javax.jms.MessageProducer

A WLMessageProducer provides methods not supported by javax.jms.MessageProducer.

WLMessageProducer provide methods for the following:

Author:
Copyright (c) 2001 by BEA Systems, Inc., All Rights Reserved.
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.
See Also:
MessageProducer

Method Summary
 long getTimeToDeliver()
          Get the time to deliver for this producer; this is a relative time representing the delay in milliseconds before a sent message is made visible on its target destination.
 void setTimeToDeliver(long timeToDeliver)
          Set the time to deliver for this producer; this is a relative time representing the delay in milliseconds before a sent message is made visible on its target destination.
 
Methods inherited from interface javax.jms.MessageProducer
close, getDeliveryMode, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
 

Method Detail

getTimeToDeliver

public long getTimeToDeliver()
                      throws javax.jms.JMSException
Get the time to deliver for this producer; this is a relative time representing the delay in milliseconds before a sent message is made visible on its target destination. The default time to deliver is 0; this default can be changed by modifying the configuration of the connection factory used to create this producer. If the time to deliver on the producer is set to -1 (the default), then this method will return the default time to deliver, which is the configurable value on the connection factory used to create this producer.

Returns:
The time to deliver for the message.
Throws:
javax.jms.JMSException - if a JMS error occurs.
See Also:
setTimeToDeliver(long), weblogic.jms.extensions.WLMessage.getJMSDeliveryTime()

setTimeToDeliver

public void setTimeToDeliver(long timeToDeliver)
                      throws javax.jms.JMSException
Set the time to deliver for this producer; this is a relative time representing the delay in milliseconds before a sent message is made visible on its target destination. The default time to deliver is 0; this default can be changed by modifying the configuration of the connection factory used to create this producer. Setting the time to deliver to -1 forces use of this default. Setting the time to deliver to anything greater than or equal to 0 overrides this default.

Parameters:
timeToDeliver - The time to deliver this message.
Throws:
javax.jms.JMSException - if a JMS error occurs.
See Also:
getTimeToDeliver(), weblogic.jms.extensions.WLMessage.getJMSDeliveryTime()

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.