[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13808917#comment-13808917
 ] 

Ivan Kelly commented on BOOKKEEPER-696:
---------------------------------------

The difference is that for enums you can't use StatsLogger, you need to 
generate a new set of classes for each enum type. With const strings, you can 
use the original StatsLogger interface everywhere. If we change the statslogger 
in future, which is likely (I want to add histograms and maybe meter/rate), 
each implementation needs to be updated for them to use it. I'm not proposing 
string consts to help runtime efficiency. I'm proposing it to reduce 
development friction.

> stats collection on bookkeeper client
> -------------------------------------
>
>                 Key: BOOKKEEPER-696
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-696
>             Project: Bookkeeper
>          Issue Type: Sub-task
>          Components: bookkeeper-client
>            Reporter: Sijie Guo
>            Assignee: Aniruddha
>             Fix For: 4.3.0
>
>         Attachments: 0001-client-stats-for-bookkeeper.patch
>
>
> Stats for bookkeeper client.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to