Thread the listener, start to use Java NIO.