RecordMetadata value() { if (nextRecordMetadata != null) return nextRecordMetadata.value(); return new RecordMetadata(result.topicPartition(), this.result.baseOffset(), this.relativeOffset, timestamp(), this.checksum, this.serializedKeySize, this.serializedValueSize); }
private RecordMetadata valueOrError() throws ExecutionException { if (this.result.error() != null) throw new ExecutionException(this.result.error()); else return new RecordMetadata(result.topicPartition(), this.result.baseOffset(), this.relativeOffset); }