All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.postgresql.PGNotification Maven / Gradle / Ivy

There is a newer version: 5.0.0.9.pg
Show newest version
/*
 * Copyright (c) 2003, PostgreSQL Global Development Group
 * See the LICENSE file in the project root for more information.
 */

package io.mogdb;

/**
 * This interface defines the public PostgreSQL extension for Notifications.
 */
public interface PGNotification {
  /**
   * Returns name of this notification.
   *
   * @return name of this notification
   * @since 7.3
   */
  String getName();

  /**
   * Returns the process id of the backend process making this notification.
   *
   * @return process id of the backend process making this notification
   * @since 7.3
   */
  int getPID();

  /**
   * Returns additional information from the notifying process. This feature has only been
   * implemented in server versions 9.0 and later, so previous versions will always return an empty
   * String.
   *
   * @return additional information from the notifying process
   * @since 8.0
   */
  String getParameter();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy