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

ASF GitHub Bot commented on ARTEMIS-1474:
-----------------------------------------

Github user clebertsuconic commented on the issue:

    https://github.com/apache/activemq-artemis/pull/1602
  
    I still don't understand the point of this PR...
    
    but in case we go ahead, please keep it as:
    
    
    ```java
    public final class TimedBuffer {
    
       private static final double MAX_TIMEOUT_ERROR_FACTOR = 1.5;
    ```
    
    and use that factor instead of those properties. Keep it Simple!


> TimedBuffer need sleep error detection measured against the expected timeout
> ----------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1474
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1474
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Francesco Nigro
>            Assignee: Francesco Nigro
>            Priority: Minor
>
> The current TimedBuffer implementation evaluate the sleep accuracy measuring 
> the error against the elapsed sleep time while the original version was using 
> the error related to the overall expected timeout: It would be better due to 
> the sleep/parkNanos behaviour to maintain the original evaluation method, but 
> using the improved discounted (with the last flush time) sleep time in order 
> to not exeeding to delay flushes.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to