You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/02/12 00:47:33 UTC

[GitHub] justinborromeo opened a new pull request #7052: 7037 Abstract BlockingQueue#Offer Failure Handling

justinborromeo opened a new pull request #7052: 7037 Abstract BlockingQueue#Offer Failure Handling
URL: https://github.com/apache/incubator-druid/pull/7052
 
 
   Addresses: #7037 
   
   To abstract the logic of checking whether a `BlockingQueue#offer()` call succeeded, I created a helper class that wraps the `offer` call and executes a function (provided as an argument) if unsuccessful.  I chose to implement the abstraction this way instead of a utility class with static methods so that the type of the offered element could be validated at compile time.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org