kevdoran commented on code in PR #10530:
URL: https://github.com/apache/nifi/pull/10530#discussion_r2530040709


##########
nifi-extension-bundles/nifi-extension-utils/nifi-event-listen/src/main/java/org/apache/nifi/processor/util/listen/AbstractListenEventProcessor.java:
##########
@@ -56,13 +61,14 @@
  *
  * @param <E> the type of events being produced
  */
-public abstract class AbstractListenEventProcessor<E extends Event> extends 
AbstractProcessor {
+public abstract class AbstractListenEventProcessor<E extends Event> extends 
AbstractProcessor implements ListenComponent {
 
     public static final PropertyDescriptor PORT = new PropertyDescriptor
             .Builder().name("Port")
             .description("The port to listen on for communication.")
             .required(true)
             .expressionLanguageSupported(ExpressionLanguageScope.ENVIRONMENT)
+            .identifiesListenPort(TransportProtocol.UDP)

Review Comment:
   The only concrete classes extending `AbstractListenEventProcessor` are 
currently `ListenUDP` and `ListenUDPRecord`. That said, if you think this base 
class could be used for other transport protocols, I am happy to push the 
`PORT` property descriptor down into the extending classes rather than assuming 
the Abstract class is only intended for UDP.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to