Add jni c++ function for queue get