Google Appengine和rx-Java? [英] Google Appengine and 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
实现。因此,涉及某些并发<如果您想要在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 Scheduler
s 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屋!