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

Colin Patrick McCabe commented on HTRACE-6:
-------------------------------------------

I think it would be better for client code which uses {{TraceRunnable}} to 
simply subclass {{TraceRunnable}}, and have the subclass implement 
{{Comparable}}.  With the current patch, we get a runtime typecast error if the 
Runnable we're wrapping doesn't implement Comparable, which seems like 
something we should try to avoid.  What do you think?

> Make TraceRunnable implement Comparable
> ---------------------------------------
>
>                 Key: HTRACE-6
>                 URL: https://issues.apache.org/jira/browse/HTRACE-6
>             Project: HTrace
>          Issue Type: Wish
>            Reporter: Billie Rinaldi
>         Attachments: HTRACE-6.1.patch
>
>
> Accumulo would be able to use htrace's TraceRunnable if it implemented 
> Comparable<TraceRunnable>.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to