Thanks, Jun. That is exactly what I want to know. Libo
> Date: Thu, 23 Oct 2014 17:53:24 -0700 > Subject: Re: a questions about 0.8.1 async publishing > From: jun...@gmail.com > To: users@kafka.apache.org > > The new java producer to be released in 0.8.2 supports a callback on each > message sent asynchronously. > > Thanks, > > Jun > > On Thu, Oct 23, 2014 at 3:26 PM, Libo Yu <yu_l...@hotmail.com> wrote: > > > Hi, > > > > If I use async publishing plus message acknowledgement, > > is there any API to tell when all the messages in the queue > > have been sent out? > > > > This will be used in the shutdown hook to make sure when > > the process is down there is no pending messages to be > > published. > > > > Thanks, > > > > Libo > >