Package org.apache.kafka.clients.producer

Examples of org.apache.kafka.clients.producer.RecordMetadata


    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);
    }
View Full Code Here


                        // we assume that cancelled requests should not be retried.
                        retry = false;
                    }
                    try {
                        // wait for request to finish
                        RecordMetadata response = responseFtr.get();
                        if( response.topic() == null ){
                            log.warn( "Kafka producer got null topic in response" );
                        }
                        sentCount.incrementAndGet();
                        sentByteCount.addAndGet( m.getPayload().length );
                        failure = false;
View Full Code Here

TOP

Related Classes of org.apache.kafka.clients.producer.RecordMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.