Specify additional output topics via default CLI#75
Conversation
| } | ||
|
|
||
| protected Optional<String> getOutputTopic(final String role) { | ||
| return Optional.ofNullable(this.extraOutputTopics.get(role)); |
There was a problem hiding this comment.
What do you think @VictorKuenstler @BJennWare : Should we return Optional or throw an exception if an output topic does not exist? i.e., delegate error handling to caller or handle it by default
There was a problem hiding this comment.
Can you think of a scenario for only outputting to a topic if configured? But having the freedom to do something like this might be worthwhile so I am fine with returning an optional.
There was a problem hiding this comment.
It's more for a case where it hasn't been configured. The question is if we would like to have a default error message then or let the user write one
There was a problem hiding this comment.
If it is only about an error message we can have a default one that includes the topic name and the role.
…tiple-output-topics
No description provided.