Duplicate bytebuffers instead of actually copying bytes
Save the quantity buffer in a local variable to prevent creating a second copy of the buffer unnecessarily
Changed some thread names
Edit Public API. Use Object to describe key/value collections instead of Record because this is a little more intuitive to native programmers
change thread name: