Class DataConnectionBase

    • Constructor Detail

    • Method Detail

      • getName

        @Nonnull
        public final java.lang.String getName()
        Description copied from interface: DataConnection
        Returns the name of this data connection as specified in the DataConnectionConfig or the CREATE DATA CONNECTION command.
        Specified by:
        getName in interface DataConnection
        Returns:
        the name of this DataConnection
      • retain

        public final void retain()
        Description copied from interface: DataConnection
        Prevents the data connection from being closed. It is useful when the processor wants to avoid the data connection from being closed while it is obtaining connections from it. Multiple threads can retain the same DataConnection concurrently.

        Note that the DataConnection also isn't closed until all shared connections obtained from it are returned. This feature, together with the lock allows the processor to avoid concurrent close while it is using the connection.

        Specified by:
        retain in interface DataConnection