Package io.micronaut.jms.pool
Class PooledProducer
java.lang.Object
io.micronaut.jms.pool.PooledObject<jakarta.jms.MessageProducer>
io.micronaut.jms.pool.PooledProducer
- All Implemented Interfaces:
jakarta.jms.MessageProducer
,AutoCloseable
public class PooledProducer
extends PooledObject<jakarta.jms.MessageProducer>
implements jakarta.jms.MessageProducer
Pooled object for ensuring maximum reuse of
MessageProducer
objects.- Since:
- 1.0.0
- Author:
- Elliott Pope
- See Also:
-
Constructor Summary
ConstructorDescriptionPooledProducer
(AbstractPool<PooledObject<jakarta.jms.MessageProducer>> pool, jakarta.jms.MessageProducer object) -
Method Summary
Modifier and TypeMethodDescriptionlong
int
jakarta.jms.Destination
boolean
boolean
int
long
static PooledProducer
of
(PooledObject<jakarta.jms.MessageProducer> object) void
send
(jakarta.jms.Destination destination, jakarta.jms.Message message) void
send
(jakarta.jms.Destination destination, jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive) void
send
(jakarta.jms.Destination destination, jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive, jakarta.jms.CompletionListener completionListener) void
send
(jakarta.jms.Destination destination, jakarta.jms.Message message, jakarta.jms.CompletionListener completionListener) void
send
(jakarta.jms.Message message) void
send
(jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive) void
send
(jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive, jakarta.jms.CompletionListener completionListener) void
send
(jakarta.jms.Message message, jakarta.jms.CompletionListener completionListener) void
setDeliveryDelay
(long deliveryDelay) void
setDeliveryMode
(int deliveryMode) void
setDisableMessageID
(boolean value) void
setDisableMessageTimestamp
(boolean value) void
setPriority
(int defaultPriority) void
setTimeToLive
(long timeToLive) toString()
Methods inherited from class io.micronaut.jms.pool.PooledObject
close, get
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.jms.MessageProducer
close
-
Constructor Details
-
PooledProducer
public PooledProducer(AbstractPool<PooledObject<jakarta.jms.MessageProducer>> pool, jakarta.jms.MessageProducer object)
-
-
Method Details
-
of
-
setDisableMessageID
public void setDisableMessageID(boolean value) throws jakarta.jms.JMSException - Specified by:
setDisableMessageID
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
getDisableMessageID
public boolean getDisableMessageID() throws jakarta.jms.JMSException- Specified by:
getDisableMessageID
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
setDisableMessageTimestamp
public void setDisableMessageTimestamp(boolean value) throws jakarta.jms.JMSException - Specified by:
setDisableMessageTimestamp
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
getDisableMessageTimestamp
public boolean getDisableMessageTimestamp() throws jakarta.jms.JMSException- Specified by:
getDisableMessageTimestamp
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
setDeliveryMode
public void setDeliveryMode(int deliveryMode) throws jakarta.jms.JMSException - Specified by:
setDeliveryMode
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
getDeliveryMode
public int getDeliveryMode() throws jakarta.jms.JMSException- Specified by:
getDeliveryMode
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
setPriority
public void setPriority(int defaultPriority) throws jakarta.jms.JMSException - Specified by:
setPriority
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
getPriority
public int getPriority() throws jakarta.jms.JMSException- Specified by:
getPriority
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
setTimeToLive
public void setTimeToLive(long timeToLive) throws jakarta.jms.JMSException - Specified by:
setTimeToLive
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
getTimeToLive
public long getTimeToLive() throws jakarta.jms.JMSException- Specified by:
getTimeToLive
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
setDeliveryDelay
public void setDeliveryDelay(long deliveryDelay) throws jakarta.jms.JMSException - Specified by:
setDeliveryDelay
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
getDeliveryDelay
public long getDeliveryDelay() throws jakarta.jms.JMSException- Specified by:
getDeliveryDelay
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
getDestination
public jakarta.jms.Destination getDestination() throws jakarta.jms.JMSException- Specified by:
getDestination
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
send
public void send(jakarta.jms.Message message) throws jakarta.jms.JMSException - Specified by:
send
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
send
public void send(jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive) throws jakarta.jms.JMSException - Specified by:
send
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
send
public void send(jakarta.jms.Destination destination, jakarta.jms.Message message) throws jakarta.jms.JMSException - Specified by:
send
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
send
public void send(jakarta.jms.Destination destination, jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive) throws jakarta.jms.JMSException - Specified by:
send
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
send
public void send(jakarta.jms.Message message, jakarta.jms.CompletionListener completionListener) throws jakarta.jms.JMSException - Specified by:
send
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
send
public void send(jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive, jakarta.jms.CompletionListener completionListener) throws jakarta.jms.JMSException - Specified by:
send
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
send
public void send(jakarta.jms.Destination destination, jakarta.jms.Message message, jakarta.jms.CompletionListener completionListener) throws jakarta.jms.JMSException - Specified by:
send
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
send
public void send(jakarta.jms.Destination destination, jakarta.jms.Message message, int deliveryMode, int priority, long timeToLive, jakarta.jms.CompletionListener completionListener) throws jakarta.jms.JMSException - Specified by:
send
in interfacejakarta.jms.MessageProducer
- Throws:
jakarta.jms.JMSException
-
toString
-