pgq api for java