PgNotificationHelper

Поиск
Список
Период
Сортировка
От Francisco Javier Morosini Eguren
Тема PgNotificationHelper
Дата
Msg-id CABofrE1O+EYQkZjY8Oms6N7kV7SPA-Bqu2S9qWTkCgzk4PLcoQ@mail.gmail.com
обсуждение исходный текст
Список pgsql-jdbc
Hello i try to use PgNotificationHelper (http://wiki.postgresql.org/wiki/PgNotificationPoller) , the method:

        // not synchronized, must not access pub members
        private boolean poll() {
            assert(status == Status.LISTENING);
            assert(Thread.currentThread().
equals(this));
            try {
                lastPollTimeMs = System.currentTimeMillis();
                helper.poll();
                return true;
            } catch (SQLException e) {
                reportSQLException("Polling for notifications failed, will try to reconnect", e);
                return false;
            }
        }

method poll in class notify.PgNotificationHelper cannot be applied to given types required: java.sql.Connection, long, boolean found: no argument.

i know i need to add the parameters, because the parent class have:

public void poll(Connection conn, long pg_backend_pid, boolean useDummyStatement) throws SQLException {

but, why in PgNotificationHelper don't pass the arguments? is an error?

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Driver does not return comments for types
Следующее
От: Michael Bauland
Дата:
Сообщение: Defining local IP address when opening connections to database