Are there any differences between a Go channel and a Java BlockingQueue? Both are queues with similar blocking and memory model semantics. Optionally both can have a capacity se
To do something similar to golang'select statement in java would involve using the java.nio package. Specifically selectors and channels. Check out the package docs here:
http://docs.oracle.com/javase/6/docs/api/java/nio/channels/package-summary.html#multiplex
It offers pretty much the same capability as the golang select statement, using a single thread to multiplex reading/writing from multiple channels.