Package org.postgresql.core
Class Notification
- java.lang.Object
-
- org.postgresql.core.Notification
-
- All Implemented Interfaces:
PGNotification
public class Notification extends java.lang.Object implements PGNotification
-
-
Constructor Summary
Constructors Constructor Description Notification(java.lang.String name, int pid)Notification(java.lang.String name, int pid, java.lang.String parameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns name of this notification.java.lang.StringgetParameter()Returns additional information from the notifying process.intgetPID()Returns the process id of the backend process making this notification.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:PGNotificationReturns name of this notification.- Specified by:
getNamein interfacePGNotification- Returns:
- name of this notification
-
getPID
public int getPID()
Description copied from interface:PGNotificationReturns the process id of the backend process making this notification.- Specified by:
getPIDin interfacePGNotification- Returns:
- process id of the backend process making this notification
-
getParameter
public java.lang.String getParameter()
Description copied from interface:PGNotificationReturns 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.- Specified by:
getParameterin interfacePGNotification- Returns:
- additional information from the notifying process
-
-