-
Notifications
You must be signed in to change notification settings - Fork 580
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
Common context #600
Common context #600
Conversation
d52e0e8
to
d3591ab
Compare
d3591ab
to
7642814
Compare
common/context/src/main/java/io/helidon/common/context/Context.java
Outdated
Show resolved
Hide resolved
common/context/src/main/java/io/helidon/common/context/ContextAwareExecutorImpl.java
Outdated
Show resolved
Hide resolved
common/context/src/main/java/io/helidon/common/context/ContextAwareExecutorImpl.java
Outdated
Show resolved
Hide resolved
common/context/src/test/java/io/helidon/common/context/ContextAwareScheduledExecutorTest.java
Show resolved
Hide resolved
common/context/src/test/java/io/helidon/common/context/ContextAwareScheduledExecutorTest.java
Show resolved
Hide resolved
common/context/src/test/java/io/helidon/common/context/ContextAwareScheduledExecutorTest.java
Show resolved
Hide resolved
common/context/src/test/java/io/helidon/common/context/ContextAwareScheduledExecutorTest.java
Show resolved
Hide resolved
common/http/src/main/java/io/helidon/common/http/ContextualRegistry.java
Show resolved
Hide resolved
Resolves #596 |
Added context id. Also the existing |
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
common context. Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
0d1d4bc
to
229ec69
Compare
common/context/src/main/java/io/helidon/common/context/Contexts.java
Outdated
Show resolved
Hide resolved
common/context/src/main/java/io/helidon/common/context/ContextAwareExecutorImpl.java
Show resolved
Hide resolved
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.
In general, this all looks good to me and I only had a few minor comments.
One thing that concerns me a bit is that this is all very similar to how gRPC Context
works, but we probably won't be able to use it as a direct replacement, as gRPC internally uses and expects its own implementation. Will need to take a deeper look into it, and see if it's possible to adapt one context implementation to another.
common/context/src/main/java/io/helidon/common/context/Contexts.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
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 didn't mean that the methods should be named differently depending on the argument type, just that they should have either "run" or "invoke". Anyway, this all looks good.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
First implementation of the common context described in #599