It could be that what you're looking for is non-blocking IO with Channels in Java NIO:
JDK 1.4.2 New I/O-related APIs & Developer Guides -- from Sun Microsystems