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

add receiver options to set selector and nolocal filters #68

Merged
merged 2 commits into from
Dec 3, 2021

Conversation

gemmellr
Copy link
Contributor

@gemmellr gemmellr commented Dec 3, 2021

add receiver options to set selector and nolocal filters

Builds on #67, with tweaks and addition of tests to verify the behaviour.

@gemmellr gemmellr merged commit 2e78411 into vert-x3:master Dec 3, 2021
@gemmellr gemmellr added this to the 4.2.2 milestone Dec 3, 2021
public static final UnsignedLong SELECTOR_CODE = UnsignedLong.valueOf(0x0000_468C_0000_0004L);
public static final Symbol SELECTOR_NAME = Symbol.valueOf("apache.org:selector-filter:string");
// For the "apache.org:selector-filter:string" filter
private static final Symbol SELECTOR_KEY = Symbol.valueOf("selector");
Copy link
Contributor

@sebthom sebthom Dec 3, 2021

Choose a reason for hiding this comment

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

@gemmellr Out of curiosity, why are you using "selector" instead of "apache.org:selector-filter:string" as mentioned on https://www.amqp.org/specification/1.0/filters here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because that is the filters symbolic descriptor, not the value that has to be used as the filter map key (which is actually undefined and not meant to influence behaviour).

Copy link
Contributor Author

@gemmellr gemmellr Dec 3, 2021

Choose a reason for hiding this comment

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

i.e you can send symbol "apache.org:selector-filter:string" as the described type descriptor rather than the ulong numeric descriptor

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, thank you!

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.

None yet

2 participants