Using Google Protocol Buffers with Java NIO?
问题 I'm currently playing around with java.nio , which I haven't been using for a long time. I use Google Protocol Buffers for serialization and for communication with other parts of my system. Now I can't figure out if/how it is possible to get use protobuffers with java.nio classes. I can't imagine that Google is using only "one thread per connection" with networked protocol buffers. Could anyone give me a pointer on how to integrate the two? Thanks in advance! Martin 回答1: I suggest Netty,