137138139140141142143144145146147
final Connection connection = context.getConnection(); if (AsyncQueue.EXPECTING_MORE_OPTION.equals(data)) { connection.simulateIOEvent(ioEvent); } else { connection.enableIOEvent(ioEvent); } } } @Override
185186187188189190191192193194
final IOEvent ioEvent = context.getIoEvent(); final Connection connection = context.getConnection(); if (AsyncQueue.EXPECTING_MORE_OPTION.equals(data)) { connection.simulateIOEvent(ioEvent); } else { connection.enableIOEvent(ioEvent); } } } }