public inbox for [email protected]
help / color / mirror / Atom feedFrom: rob stone <[email protected]>
To: Pawel Veselov <[email protected]>
To: List <[email protected]>
Subject: Re: PGConnection.getNotifications(0) doesn't block
Date: Fri, 04 Aug 2023 18:47:43 +1000
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAMnJ+Bf7STMy2DwKjT12dxT-j+Han1KoVSkmFZ9Otuwd6to+DA@mail.gmail.com>
References: <CAMnJ+Bf7STMy2DwKjT12dxT-j+Han1KoVSkmFZ9Otuwd6to+DA@mail.gmail.com>
Hello,
On Thu, 2023-08-03 at 16:04 +0200, Pawel Veselov wrote:
> Hello.
>
> I'm implementing a bit that is expected to wait for published channel
> notifications,
> and once there are any - process them.
>
> I'm using PGConnection.getNotifications(0), but that immediately
> returns an empty
> array, and doesn't block like JavaDoc says it should.
>
> I'm on 42.6.0.
>
> What am I missing?
>
> Thank you.
>
>
Have you read the JDBC docs
https://jdbc.postgresql.org/documentation/server-prepare
which has a section about Listen/Notify?
HTH
view thread (4+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: PGConnection.getNotifications(0) doesn't block
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox