-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added interceptorClasses property to Kafka #1456
Conversation
hey @lmlynik thanks for the PR :-) I will review and merge soon :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just need to remove kafka.adoc and update the documentation about the interceptor. The PR looks good.
Waiting for your update @lmlynik
Thanks
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this file, we have an auto-generated file in src/main/docs called kafka-component.adoc, all the manual changes to documentation must be there. Can you remove this?
@@ -62,6 +62,10 @@ | |||
@UriParam | |||
private String clientId; | |||
|
|||
//interceptor.classes | |||
@UriParam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add label = "monitoring" as its kinda intended for this kind of things, isnt it?
@@ -102,11 +102,13 @@ public void testAllProducerConfigProperty() throws Exception { | |||
assertEquals("test", endpoint.getConfiguration().getSslEndpointAlgorithm()); | |||
assertEquals("SunX509", endpoint.getConfiguration().getSslKeymanagerAlgorithm()); | |||
assertEquals("PKIX", endpoint.getConfiguration().getSslTrustmanagerAlgorithm()); | |||
assertEquals("PKIX", endpoint.getConfiguration().getSslTrustmanagerAlgorithm()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove this duplicate line?
import org.apache.kafka.clients.consumer.OffsetAndMetadata; | ||
import org.apache.kafka.common.TopicPartition; | ||
|
||
public class MockConsumerInterceptor implements ConsumerInterceptor<String, String> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general I don't like this idea, is there something in the current Camel repo which can help mocking such functionality like list backed interceptors?
Thanks for the PR it has been merged. Do you mind closing this? |
Some monitoring tools require to provide the interceptor classes to work