pvillard31 commented on a change in pull request #3240: NIFI-5921: Added 
property to allow a user to define a timeout on the ConsumeJMS …
URL: https://github.com/apache/nifi/pull/3240#discussion_r245117631
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/ConsumeJMS.java
 ##########
 @@ -177,8 +186,9 @@ protected void rendezvousWithJms(final ProcessContext 
context, final ProcessSess
         final boolean shared = sharedBoolean == null ? false : sharedBoolean;
         final String subscriptionName = 
context.getProperty(SUBSCRIPTION_NAME).evaluateAttributeExpressions().getValue();
         final String charset = 
context.getProperty(CHARSET).evaluateAttributeExpressions().getValue();
+        final long timeout = 
context.getProperty(TIMEOUT).asTimePeriod(TimeUnit.MILLISECONDS);
 
 Review comment:
   With EL evaluation.
   ```suggestion
           final long timeout = 
context.getProperty(TIMEOUT).evaluateAttributeExpressions().asTimePeriod(TimeUnit.MILLISECONDS);
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to