porting libuv-java API