I have investigated source code of java client library and compiled version pubnub-3.7.4.jar and figured out that nothing to prevents to use java.util.concurrent.*. This package was introduced to java platform since 1.5, and pubnub-3.7.4.jar compiled with bytecode version 50(java 6)
But unfortunately, instead of using well known framework, your library intensively reinvent the wheel:
But not everithing is so bad, your library has many unit tests, so at the first look, job to introducing java.util.concurrent should be safely done in few days. I can rewrite it and contribute to your github repository, but I want to be sure that my pull request will be integrated to official library, because I do not want the results of my work dissapeared. Could you explain your plans about evolution of java client library? Do you have any objections to introduce java.util.concurrent into pubnub java library?
Lets go together to make Pubnub Java library better!
Thanks, - Vladimir Bukhtoyarov, Senior Java backend developer at Dinosystems, Saint-Peterburg, Russia.