You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Yang <te...@gmail.com> on 2011/09/06 17:14:36 UTC
bookkeeper client.readEntry() ?
readEntry() takes a param of entryId,
but is there a way to tell the client to just receive the latest entries?
i.e. treating the replicated log as a stream
Thanks
Yang
Re: bookkeeper client.readEntry() ?
Posted by Ivan Kelly <iv...@yahoo-inc.com>.
Hi Yang,
You can get the latest entry id using LedgerHandle#getLastAddConfirmed()
Its better to send Bookkeeper related questions to bookkeeper-user@zookeeper.apache.org as bookkeeper has moved out of zookeeper into a subproject now.
Regards
Ivan
On 6 Sep 2011, at 17:14, Yang wrote:
> readEntry() takes a param of entryId,
>
> but is there a way to tell the client to just receive the latest entries?
> i.e. treating the replicated log as a stream
>
> Thanks
> Yang
Re: bookkeeper client.readEntry() ?
Posted by Ivan Kelly <iv...@yahoo-inc.com>.
Hi Yang,
You can get the latest entry id using LedgerHandle#getLastAddConfirmed()
Its better to send Bookkeeper related questions to bookkeeper-user@zookeeper.apache.org as bookkeeper has moved out of zookeeper into a subproject now.
Regards
Ivan
On 6 Sep 2011, at 17:14, Yang wrote:
> readEntry() takes a param of entryId,
>
> but is there a way to tell the client to just receive the latest entries?
> i.e. treating the replicated log as a stream
>
> Thanks
> Yang