NoticeHandler

interface NoticeHandler

Interface for handling PostgreSQL notices. Implementations can be provided via the connection URL property noticeHandler.

Note: The handleNotice method is executed synchronously on the connection's network thread. Any long-running or blocking operations should be offloaded to another thread to avoid blocking further message processing from the database.

Functions

Link copied to clipboard
abstract fun handleNotice(notice: PgNotice)

Called for every notice the server sends on a connection this handler is installed on.