vertx / io.vertx.reactivex.core.parsetools / RecordParser / maxRecordSize

maxRecordSize

open fun maxRecordSize(size: Int): RecordParser

Set the maximum allowed size for a record when using the delimited mode. The delimiter itself does not count for the record size.

If a record is longer than specified, an java.lang.IllegalStateException will be thrown.

Parameters

size - the maximum record size

Return
a reference to this, so the API can be used fluently