nealkumar / JBrew

The JBrew library collection is a set of of Java & JNI utility libraries featuring native facades that precisely tune elected garbage-collection sensitive operations for downstream consumers with use-cases hindered by the Java Memory Model. The library also seeks to abstract away syntax pitfalls in concurrency through its Task framework.
https://jbrew.org/
BSD 3-Clause Clear License
0 stars 0 forks source link

Builder Interface for OBT and MBT #89

Open nealkumar opened 4 years ago

nealkumar commented 4 years ago

Is your feature request related to a problem? Please describe. Creating a ObjectBlockingTask or MethodBlockingTask and assigning names/priorities/other fields can get cumbersome with multiple dot statements. This problem can either be solved by having a constructor which takes in n arguments, where n is the number of fields as Task specifies. On the other hand, a Builder pattern would allow for a cleaner solution.

Describe the solution you'd like A Builder pattern as the primary interface for a ObjectBlockingTask and MethodBlockingTask.

nealkumar commented 4 years ago

will have to update unit tests