Return a channel for the given name
.
Close the subscriber, the retry policy will not be invoked.
Close the subscriber, the retry policy will not be invoked.
Set an handler called when the subscriber is closed.
Connect the subscriber to Postgres.
Connect the subscriber to Postgres.
Set the reconnect policy that is executed when the subscriber is disconnected.
When the subscriber is disconnected, thepolicy
function is called with the actual
number of retries and returns an amountOfTime
value:
amountOfTime < 0
: the subscriber is closed and there is no retryamountOfTime == 0
: the subscriber retries to connect immediatelyamountOfTime > 0
: the subscriber retries after amountOfTime
millisecondsCreate a subscriber.
Generated using TypeDoc
A class for managing subscriptions using
The subscriber manages a single connection to Postgres.LISTEN/UNLISTEN
to Postgres channels.