Codota Logo
QueryExecutorImpl.receiveAsyncNotify
Code IndexAdd Codota to your IDE (free)

How to use
receiveAsyncNotify
method
in
org.postgresql.core.v3.QueryExecutorImpl

Best Java code snippets using org.postgresql.core.v3.QueryExecutorImpl.receiveAsyncNotify (Showing top 16 results out of 315)

  • Common ways to obtain QueryExecutorImpl
private void myMethod () {
QueryExecutorImpl q =
  • Codota IconProtocolConnectionImpl protocolConnectionImpl;PGStream pgStream;Properties info;Logger logger;new QueryExecutorImpl(protocolConnectionImpl, pgStream, info, logger)
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

switch (c) {
 case 'A': // Asynchronous Notify
  receiveAsyncNotify();
  break;
origin: postgresql/postgresql

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: org.postgresql/postgresql

receiveAsyncNotify();
break;
origin: postgresql/postgresql

receiveAsyncNotify();
break;
origin: org.postgresql/postgresql

switch (c) {
 case 'A': // Asynchronous Notify
  receiveAsyncNotify();
  break;
origin: org.postgresql/postgresql

receiveAsyncNotify();
timeoutMillis = -1;
continue;
origin: postgresql/postgresql

receiveAsyncNotify();
break;
origin: postgresql/postgresql

  logger.debug(" <=BE Asynchronous Notification while copying");
receiveAsyncNotify();
break;
origin: org.ancoron.postgresql/org.postgresql.osgi

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: org.ancoron.postgresql/org.postgresql

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: org.ancoron.postgresql/org.postgresql

receiveAsyncNotify();
break;
origin: org.ancoron.postgresql/org.postgresql.osgi

receiveAsyncNotify();
break;
origin: org.ancoron.postgresql/org.postgresql.osgi

receiveAsyncNotify();
break;
origin: org.ancoron.postgresql/org.postgresql

receiveAsyncNotify();
break;
origin: org.ancoron.postgresql/org.postgresql.osgi

  logger.debug(" <=BE Asynchronous Notification while copying");
receiveAsyncNotify();
break;
origin: org.ancoron.postgresql/org.postgresql

  logger.debug(" <=BE Asynchronous Notification while copying");
receiveAsyncNotify();
break;
org.postgresql.core.v3QueryExecutorImplreceiveAsyncNotify

Popular methods of QueryExecutorImpl

  • <init>
  • cancelCopy
    Finishes a copy operation and unlocks connection discarding any exchanged data.
  • doSubprotocolBegin
  • endCopy
    Finishes writing to copy and unlocks connection.
  • flushCopy
  • hasLock
  • initCopy
    Locks connection and calls initializer for a new CopyOperation Called via startCopy -> processCopyRe
  • interpretCommandStatus
  • lock
    Obtain lock over this connection for given object, blocking to wait if necessary.
  • processCopyResults
    Handles copy sub protocol responses from server. Unlocks at end of sub protocol, so operations on pg
  • processDeadParsedQueries
  • processDeadPortals
  • processDeadParsedQueries,
  • processDeadPortals,
  • processResults,
  • readFromCopy,
  • receiveCommandStatus,
  • receiveErrorResponse,
  • receiveFastpathResult,
  • receiveFields,
  • receiveNoticeResponse

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now