Skip to content
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

DynamicPackageOutputManager and its implementation #266

Merged
merged 8 commits into from
Sep 9, 2022

Conversation

ratcashdev
Copy link
Contributor

As a preparation, and with the assumption that real-logic/simple-binary-encoding#904 will receive no major changes, I'd like to propose to merge this PR for the upcoming version of agrona.

@ratcashdev ratcashdev force-pushed the feature/sbe-type-overrides branch from 28f1d52 to da83f68 Compare September 2, 2022 12:13
public interface MultiPackageOutputManager extends OutputManager
{
/**
* Sets the current package name.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to define the scope in which the package change applies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

javadoc added.

/**
* Extended version of the OutputManager allowing to set the java package.
*/
public interface MultiPackageOutputManager extends OutputManager
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really "multi"? More like "switchable" or something that indicates use.

Copy link
Contributor Author

@ratcashdev ratcashdev Sep 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packages are used to group, organize or distinguish. In this sense the following comes to my mind:
(Code)OrganizingOutputManager, DynamicPackageOutputManager, GroupingOutputManager, PackageControlledOutputManager, SwitchablePackageOutputManager, SelectablePackageOutputManager, or NamedPackageOutputManager, PackageGovernedOutputManager, PackageAwareOutputManager

I think I prefer selectable, or dynamic or PackageGoverned...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DynamicPackageOutputManger is probably one of the better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, renamed.

@ratcashdev ratcashdev changed the title MultiPackageOutputManager and its implementation DynamicPackageOutputManager and its implementation Sep 7, 2022
@mjpt777 mjpt777 merged commit 37f1c54 into real-logic:master Sep 9, 2022
@ratcashdev
Copy link
Contributor Author

@mjpt777 is there a way to reference the merged (snapshot) version of agrona from SBE's PR? Or should I just wait a couple of days till a release is published?

mjpt777 added a commit that referenced this pull request Sep 9, 2022
mjpt777 added a commit that referenced this pull request Sep 9, 2022
@mjpt777
Copy link
Contributor

mjpt777 commented Sep 9, 2022

@mjpt777 is there a way to reference the merged (snapshot) version of agrona from SBE's PR? Or should I just wait a couple of days till a release is published?

This can only be done locally.

@ratcashdev ratcashdev deleted the feature/sbe-type-overrides branch September 15, 2022 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants