You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Ivan Kelly (JIRA)" <ji...@apache.org> on 2012/12/12 12:55:21 UTC
[jira] [Created] (BOOKKEEPER-502) Hedwig client utils to avoid
protobuf boilerplate
Ivan Kelly created BOOKKEEPER-502:
-------------------------------------
Summary: Hedwig client utils to avoid protobuf boilerplate
Key: BOOKKEEPER-502
URL: https://issues.apache.org/jira/browse/BOOKKEEPER-502
Project: Bookkeeper
Issue Type: Bug
Reporter: Ivan Kelly
Fix For: 4.3.0
Doing anything with the hedwig java client requires a lot of boilerplate protobuf code.
For example
{code}
SubscriptionOptions options = SubscriptionOptions.newBuilder()
.setCreateOrAttach(CreateOrAttach.CREATE).build();
client.getSubscriber().asyncSubscribe(ByteString.copyFromUtf8("myTopic"),
ByteString.copyFromUtf8("mySubscription"),
options,
myCallback,
myContext);
{code}
It would be nice to be able to write something like
{code}
client.getSubscriber().asyncSubscriber(_s("myTopic"), _s("mySubscription"),
_subOpts(CreateOrAttach.CREATE),
myCallback, myContext);
{code}
For this we need a ClientUtils class with statics. This JIRA is to create that class and discuss what should be in it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira