final class JMSPublisher extends JMSWorker
| Modifier and Type | Class and Description |
|---|---|
static interface |
JMSPublisher.JmsPropertySetter
Implementations of this interface use
Message methods to set strongly typed properties. |
static class |
JMSPublisher.JmsPropertySetterEnum |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,JMSPublisher.JmsPropertySetterEnum> |
propertySetterMap
This map helps us avoid using JmsPropertySetterEnum.valueOf and dealing with IllegalArgumentException on failed lookup.
|
jmsTemplate, processLog| Constructor and Description |
|---|
JMSPublisher(org.springframework.jms.connection.CachingConnectionFactory connectionFactory,
org.springframework.jms.core.JmsTemplate jmsTemplate,
ComponentLog processLog) |
| Modifier and Type | Method and Description |
|---|---|
private static javax.jms.Destination |
buildDestination(javax.jms.Session session,
String destinationName) |
private void |
logUnbuildableDestination(String destinationName,
String headerName) |
(package private) void |
publish(String destinationName,
byte[] messageBytes) |
(package private) void |
publish(String destinationName,
byte[] messageBytes,
Map<String,String> flowFileAttributes) |
(package private) void |
publish(String destinationName,
String messageText,
Map<String,String> flowFileAttributes) |
(package private) void |
setMessageHeaderAndProperties(javax.jms.Session session,
javax.jms.Message message,
Map<String,String> flowFileAttributes) |
public static Map<String,JMSPublisher.JmsPropertySetterEnum> propertySetterMap
JMSPublisher(org.springframework.jms.connection.CachingConnectionFactory connectionFactory,
org.springframework.jms.core.JmsTemplate jmsTemplate,
ComponentLog processLog)
void publish(String destinationName, byte[] messageBytes)
void publish(String destinationName, byte[] messageBytes, Map<String,String> flowFileAttributes)
void publish(String destinationName, String messageText, Map<String,String> flowFileAttributes)
void setMessageHeaderAndProperties(javax.jms.Session session,
javax.jms.Message message,
Map<String,String> flowFileAttributes)
throws javax.jms.JMSException
javax.jms.JMSExceptionprivate void logUnbuildableDestination(String destinationName, String headerName)
private static javax.jms.Destination buildDestination(javax.jms.Session session,
String destinationName)
throws javax.jms.JMSException
javax.jms.JMSExceptionCopyright © 2021 Apache NiFi Project. All rights reserved.