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

Couchbase: add methods for new actors API #2197

Merged
merged 2 commits into from Mar 19, 2020

Conversation

ennru
Copy link
Member

@ennru ennru commented Mar 13, 2020

Complement the CouchbaseSessionRegistry extension with access methods for ClassicActorSystemProvider which makes it usable without changed for the new actors API's akka.actor.typed.ActorSystem without depending on that module.

This can't be compiled against Akka 2.6 as ExtensionId in that version contains the apply(ClassicActorSystemProvider) method so it requires an override modifier in CasssandraSessionRegistry.

See #2194, #2195

@ennru ennru force-pushed the couchbase-classic-vs-typed branch from ba711af to 7a3edde Compare March 17, 2020 06:44
@raboof raboof merged commit d4e8bef into akka:master Mar 19, 2020
Copy link
Member

@jrudolph jrudolph left a comment

Choose a reason for hiding this comment

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

LGTM

*/
override def get(system: ActorSystem): CouchbaseSessionRegistry =
super.get(system)
// This is not source compatible with Akka 2.6 as it lacks `overrride`
Copy link
Member

Choose a reason for hiding this comment

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

I think you talked about that. So, that means it will still work on the bytecode level as long as alpakka is compiled against Akka 2.5 but needs changing once Akka 2.5 support is removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. The byte-code-level method signature is unaffected by the override so it works as expected with Akka 2.6.
But compilation with Akka 2.6 fails as the compiler requires the override.

@ennru ennru deleted the couchbase-classic-vs-typed branch March 19, 2020 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency-change For PRs changing the version of a dependency. p:couchbase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants