init queue from java API