public void shutdown() { if (tokenizer != null) { tokenizer.removeAllListeners(); tokenizer = null; } if (session != null) { session.shutdown(); session = null; } vertx = null; }
@Override public void handle(Buffer buffer) { tokenizer.process(buffer.getBytes()); }