pulsar-flink
pulsar-flink copied to clipboard
#386: Implemented passing of `CryptoKeyReader`.
Implemented passing a CryptoKeyReader
(and encryption keys) to FlinkPulsarSource
and FlinkPulsarSink
, as requested here.
Used builder pattern for easy extensibility without breaking or excessively overloading public c'tors.
Added test. (Maybe it can be moved to one of the other tests to avoid overhead.)
@jianyun8023 @syhily could you help take a look?
Hi @objecttrouve, tks for your contribution. Using a builder pattern on internal Fetcher don't sounds like a Good design. Add builder pattern for public source & sink is accepted, by we may need extra validation on final build method.
The detailed review advice would be given in weekend.
@syhily, thanks for the feedback!
I'll make the requested changes in my next free time slot.
@syhily, I made the changes as I understood your requests. Please let me know if there's anything else. Also, if I should squash. (Left multiple commits for better relatability to your remarks. For the time being.)
Thanks for your contribution. The PR looks reasonable on my side. I will merge this on the weekend.
Thanks for your contribution. The PR looks reasonable on my side. I will merge this on the weekend.
Thanks @syhily!