PLATFORM-364 better management of poll thread
PLATFORM-364 Fix build errors
Merge pull request #5 from import-io/PLATFORM-364-java

Platform 364 java