NoticeHandler

interface NoticeHandler

Interface for handling PostgreSQL notices. Implementations can be built in code and set as noticeHandler, or named by class in noticeHandlerClassName, which the connection URL can carry too.

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.