List of usage examples for io.vertx.core.parsetools.impl RecordParserImpl newFixed
static RecordParser newFixed(int size, Handler<Buffer> output)
From source file:io.servicecomb.foundation.vertx.server.TcpParser.java
License:Apache License
/** * ??parser?// ww w . j av a 2 s.co m */ protected void reset() { parser = RecordParserImpl.newFixed(TCP_HEADER_LENGTH, this::onParse); status = ParseStatus.TCP_HEADER; parser.handle(Buffer.buffer(0)); }