-
Notifications
You must be signed in to change notification settings - Fork 26
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
Feature/1084 provide data entry sender type tx as configurable option #1086
base: develop
Are you sure you want to change the base?
Feature/1084 provide data entry sender type tx as configurable option #1086
Conversation
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
...datapool-sender/src/main/kotlin/io/holunda/polyflow/datapool/DataEntrySenderConfiguration.kt
Fixed
Show fixed
Hide fixed
...datapool-sender/src/main/kotlin/io/holunda/polyflow/datapool/DataEntrySenderConfiguration.kt
Fixed
Show fixed
Hide fixed
...otlin/io/holunda/polyflow/datapool/sender/DirectTxAwareAccumulatingDataEntryCommandSender.kt
Fixed
Show fixed
Hide fixed
...datapool-sender/src/main/kotlin/io/holunda/polyflow/datapool/sender/SimpleDataEntrySender.kt
Fixed
Show fixed
Hide fixed
...main/kotlin/io/holunda/polyflow/datapool/sender/TxAwareAccumulatingDataEntryCommandSender.kt
Fixed
Show fixed
Hide fixed
...sender/src/main/kotlin/io/holunda/polyflow/datapool/sender/gateway/AxonCommandListGateway.kt
Fixed
Show fixed
Hide fixed
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.
I'll have to look on this in the IDE, not in the browser. I believe it is generally ok, but the naming of the components and extractions you proposed in the comments are worth to discuss and probably introduce some changes.
...datapool-sender/src/main/kotlin/io/holunda/polyflow/datapool/DataEntrySenderConfiguration.kt
Show resolved
Hide resolved
fun configureSender( | ||
gateway: CommandGateway, | ||
fun dataEntryCommandProcessor( | ||
dataEntrySender: DataEntrySender, |
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.
I believe this at least very confusing. This bean factory creates a DataEntryCommandSender
and requires a DataEntrySender
. Let us find better names for all this classes.
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.
Yes, exactly. I am not happy with the wording, as I mentioned in my PR-comments.
...datapool-sender/src/main/kotlin/io/holunda/polyflow/datapool/DataEntrySenderConfiguration.kt
Outdated
Show resolved
Hide resolved
/** | ||
* Interface for beans sending data entry commands. | ||
*/ | ||
interface DataEntrySender { |
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.
Don't like this name. There already a DataEntryCommandSender
class and this one is named to similar and provides JavaDoc saying that it indeed sends the data entry commands (so is named not according to its function).
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.
Agreed!
class DirectTxAwareAccumulatingDataEntryCommandSender( | ||
private val commandListGateway: CommandListGateway, | ||
dataEntrySenderProperties: DataEntrySenderProperties | ||
) : TxAwareAccumulatingDataEntryCommandSender( |
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.
Why have you introduced the separation? Are you planing to introduce the job-based sender too (would be a mirror of the job-based sender for tasks)?
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.
Might be a valid next step, I thought of. And also keeping the structure consistent to Taskpool Sender.
And please double check, why Codacy tells you that you introduced 6 new issues. |
...datapool-sender/src/main/kotlin/io/holunda/polyflow/datapool/DataEntrySenderConfiguration.kt
Fixed
Show fixed
Hide fixed
...n/taskpool-sender/src/main/kotlin/io/holunda/polyflow/taskpool/sender/SenderConfiguration.kt
Fixed
Show fixed
Hide fixed
- adds missing docs to DataEntrySenderConfiguration - declares simpleDataEntryCommandSender Bean as DataEntrySender
…ataEntryCommandSender
Basic implementation of TX-style DatapoolSender.
Details to be discussed: