开发者

Running a method for infinitely in google app engine/Gwt

开发者 https://www.devze.com 2022-12-29 05:41 出处:网络
I am having a a method which listens continuously to a stream from a server and writes that data to datastore in google app which is later on retrieved by other methods.

I am having a a method which listens continuously to a stream from a server and writes that data to datastore in google app which is later on retrieved by other methods. How can i do that in google app engine i.e calling that method one time during the starting of app and having it running for unlimited time without affecting other things. I am new to java world,So please help开发者_高级运维 from that point of view also.How's that done in Java?


Specific for the google app engine you would use a task. However, on google app engine tasks are limited to 30 seconds execution time or anything that runs on appengine, like a http request. This means you are limited in running long running tasks. See: http://code.google.com/appengine/docs/java/taskqueue/overview.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号