Can twisted be implemented in Java?

柔情痞子 提交于 2020-01-01 14:26:15

问题


I remember reading that the following features lead to the development of interesting frameworks/libraries in Python:- (I read the article from http://www.python.org/workshops/2002-02/papers/09/index.htm)

  1. A simple class model, which facilitates inheritance.
  2. Dynamic typing, which means that the code needs to assume less.
  3. Built-in memory management.

Java is statically compiled, and it has a garbage collector too. I wonder if its class model can be termed simple, however, keeping in mind the above mentioned points I have the following doubts:-

  • Does Java has a Twisted analogue in Python(which is just as powerful)?

回答1:


Netty is an event-driven networking framework written in Java, so it would most likely be Twisted's equivalent. The features are relatively similar to Twisted, and it seems powerful (I don't have any firsthand experience). It seems like it is still actively maintained. You'd have to look into it yourself to really get an idea of whether or not it meets your requirements.




回答2:


Apache Mina v2.0 is similar to Twisted.




回答3:


There is one built for an openTSDB application. API is similar to python twisted. http://tsunanet.net/~tsuna/async/1.0/com/stumbleupon/async/



来源:https://stackoverflow.com/questions/4033271/can-twisted-be-implemented-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!