Queue Monitor with Java