Google Appengine和rx-Java? [英] Google Appengine and rx-Java?

查看:87
本文介绍了Google Appengine和rx-Java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

rxJava库与Google Appengine兼容吗?如果是的话,是否有任何限制?我发现的唯一信息是提及grepcode上的'部分支持'。 http://grepcode.com /snapshot/repo1.maven.org/maven2/com.netflix.rxjava/rxjava-core/0.9.0



什么不支持?

p>

解决方案

问题是Google Appengine中Java线程的限制: https://developers.google.com/appengine/docs/java/#Java_The_sandbox



< RxJava在 Scheduler 中使用Java Thread Executor 实现。因此,涉及某些并发<> Scheduler 的代码无法在Google Java Sandbox中运行。



如果您想要在Google Appengine中使用 Scheduler ,你需要自己实现一个特殊的 Scheduler 。此外,一些运营商可以默认使用 Scheduler ,例如 delay 使用 Schedulers.computation( )默认。请记住使用它们的 Scheduler 重载方法。


Is rxJava library compatible with Google Appengine? If so are there any limitations? The only info I have found is mention of 'partial support' on grepcode. http://grepcode.com/snapshot/repo1.maven.org/maven2/com.netflix.rxjava/rxjava-core/0.9.0

What is not supported?

解决方案

The problem is the limitation of Java Threads in Google Appengine: https://developers.google.com/appengine/docs/java/#Java_The_sandbox

RxJava uses Java Thread and Executor in the Scheduler implementations. So the codes which get involved some concurrent Schedulers can not run in Google Java Sandbox.

If you want to use Scheduler in Google Appengine, you need to implement a special Scheduler by yourself. Besides, some operators may use Scheduler by default, such as delay use Schedulers.computation() by default. Remember to use their Scheduler overload methods.

这篇关于Google Appengine和rx-Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆