@Override
    public void sendOutgoingMessage(@NonNull OutgoingMessage outgoingMessage) {
        try (Connection connection = this.sqlStorage.getConnectionFactory().getConnection()) {
            try (PreparedStatement ps = connection.prepareStatement("SELECT pg_notify(?, ?)")) {
                ps.setString(1, CHANNEL);
                ps.setString(2, outgoingMessage.asEncodedString());
                ps.execute();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
An implementation of {@link Messenger} using Postgres.
common/src/main/java/me/lucko/luckperms/common/messaging/postgres/PostgresMessenger.java