davsclaus opened a new pull request, #30942:
URL: https://github.com/apache/camel/pull/30942

   # Description
   
   Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). 
The umbrella ticket stays open.
   
   ## Summary
   
   Rewrites 13 texts of camel-event: the component description, 9 endpoint 
options and 3 headers. The sources are the
   Camel code of the component (`CamelEventEndpoint`, `CamelEventConsumer`) and 
of camel-api / camel-support
   (`CamelEvent.Type`, `EventHelper`, `DefaultEventFactory`). Corrections of 
wrong texts:
   
   - `include` said that only events of the listed routes are accepted; events 
without a route (CamelContext and service
     events, exchanges not created by a route) always pass.
   - `batchTimeout` was described as a wait per batch; it is a fixed-rate timer 
that sends whatever is collected.
   - `backpressurePolicy=Fail` "throws an exception"; `EventHelper` logs it at 
WARN and ignores it, so the event is lost.
   - `async` said the notifier thread is not blocked; with `Block` it waits 
when the queue is full.
   - `events`: a `Route*` wildcard also matches `RoutesStarting` and the other 
`Routes*` CamelContext events.
   - `CamelEventTimestamp` is only set when the event factory records 
timestamps (`camel.main.camelEventsTimestampEnabled`).
   - In a batch, `CamelEventType` is the type of the first event.
   
   The setter Javadoc that duplicated the `@UriParam` / `@UriPath` descriptions 
is removed.
   
   ### Found, not changed
   
   - `backpressurePolicy=Fail` behaves like `Drop` with a WARN log, as the 
exception thrown from the event notifier never
     reaches the code that fires the event.
   - `event:ExchangeAsyncProcessingStarted` (a deprecated type) never receives 
an event: `configureEventNotifier` has no
     case for it, so exchange events stay ignored unless another exchange type 
is subscribed.
   - A batch exchange carries only the `CamelEventType` and 
`CamelEventBatchSize` headers, none of the other headers.
   
   ## Tests
   
   - There is no new test, as only description text changes.
   - A script compared the component JSON with the parent commit: only 
`description` fields changed (13 texts).
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran the formatter and built the module, then regenerated the catalog 
copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all 
generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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