T - the message typepublic class JmsProducer<T>
extends java.lang.Object
TODO rename, too similar to JMSProducer
| Constructor and Description |
|---|
JmsProducer(JMSDestinationType type,
JMSConnectionPool connectionPool,
Serializer serializer) |
JmsProducer(JMSDestinationType type,
JMSConnectionPool connectionPool,
Serializer serializer,
boolean sessionTransacted,
int sessionAcknowledgeMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
send(javax.jms.Destination destination,
javax.jms.Message message,
MessageHeader... headers)
Sends the given
message to the destination
with the given headers. |
void |
send(java.lang.String destination,
javax.jms.Message message,
MessageHeader... headers)
Sends the given
message to the destination with the
given headers. |
void |
send(java.lang.String destination,
T body,
MessageHeader... headers)
Creates a
Message from the body and sends it to the
destination with the headers. |
java.lang.String |
toString() |
public JmsProducer(JMSDestinationType type, JMSConnectionPool connectionPool, Serializer serializer)
public JmsProducer(JMSDestinationType type, JMSConnectionPool connectionPool, Serializer serializer, boolean sessionTransacted, int sessionAcknowledgeMode)
public void send(@NonNull
java.lang.String destination,
@NonNull
T body,
MessageHeader... headers)
Message from the body and sends it to the
destination with the headers.destination - the queue or topic namebody - the bodyheaders - optional headerspublic void send(@NonNull
java.lang.String destination,
@NonNull
javax.jms.Message message,
MessageHeader... headers)
message to the destination with the
given headers.destination - the queue or topic namemessage - the messageheaders - optional headerspublic void send(@NonNull
javax.jms.Destination destination,
@NonNull
javax.jms.Message message,
MessageHeader... headers)
message to the destination
with the given headers.destination - the queue or topic namemessage - the messageheaders - optional headerspublic java.lang.String toString()
toString in class java.lang.Object