@Override public void setDisableMessageTimestamp(final boolean value) throws JMSException { checkClosed(); disableMessageTimestamp = value; }
@Override public int getDeliveryMode() throws JMSException { checkClosed(); return defaultDeliveryMode; }
@Override public int getPriority() throws JMSException { checkClosed(); return defaultPriority; }
@Override public void setDisableMessageID(final boolean value) throws JMSException { checkClosed(); disableMessageID = value; }
@Override public long getTimeToLive() throws JMSException { checkClosed(); return defaultTimeToLive; }
@Override public void setTimeToLive(final long timeToLive) throws JMSException { checkClosed(); defaultTimeToLive = timeToLive; }
@Override public boolean getDisableMessageID() throws JMSException { checkClosed(); return disableMessageID; }
@Override public boolean getDisableMessageTimestamp() throws JMSException { checkClosed(); return disableMessageTimestamp; }
@Override public Destination getDestination() throws JMSException { checkClosed(); return defaultDestination; }
@Override public void setPriority(final int defaultPriority) throws JMSException { checkClosed(); if (defaultPriority < 0 || defaultPriority > 9) { throw new JMSException("Illegal priority value: " + defaultPriority); } this.defaultPriority = defaultPriority; }
@Override public void setDeliveryMode(final int deliveryMode) throws JMSException { checkClosed(); if (deliveryMode != DeliveryMode.NON_PERSISTENT && deliveryMode != DeliveryMode.PERSISTENT) { throw ActiveMQJMSClientBundle.BUNDLE.illegalDeliveryMode(deliveryMode); } defaultDeliveryMode = deliveryMode; }
@Override public void send(final Destination destination, final Message message, final int deliveryMode, final int priority, final long timeToLive) throws JMSException { checkClosed(); checkDestination(destination); doSendx((ActiveMQDestination) destination, message, deliveryMode, priority, timeToLive, null); }
@Override public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) throws JMSException { checkClosed(); checkCompletionListener(completionListener); checkDestination(destination); doSendx((ActiveMQDestination) destination, message, deliveryMode, priority, timeToLive, completionListener); }
@Override public void setDisableMessageID(final boolean value) throws JMSException { checkClosed(); disableMessageID = value; }
@Override public boolean getDisableMessageID() throws JMSException { checkClosed(); return disableMessageID; }
@Override public Destination getDestination() throws JMSException { checkClosed(); return defaultDestination; }
@Override public void setPriority(final int defaultPriority) throws JMSException { checkClosed(); if (defaultPriority < 0 || defaultPriority > 9) { throw new JMSException("Illegal priority value: " + defaultPriority); } this.defaultPriority = defaultPriority; }
@Override public void setDeliveryMode(final int deliveryMode) throws JMSException { checkClosed(); if (deliveryMode != DeliveryMode.NON_PERSISTENT && deliveryMode != DeliveryMode.PERSISTENT) { throw ActiveMQJMSClientBundle.BUNDLE.illegalDeliveryMode(deliveryMode); } defaultDeliveryMode = deliveryMode; }
@Override public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) throws JMSException { checkClosed(); checkCompletionListener(completionListener); checkDestination(destination); doSendx((ActiveMQDestination) destination, message, deliveryMode, priority, timeToLive, completionListener); }
@Override public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive, CompletionListener completionListener) throws JMSException { checkClosed(); checkCompletionListener(completionListener); checkDestination(destination); doSendx((ActiveMQDestination) destination, message, deliveryMode, priority, timeToLive, completionListener); }