Class AbstractManagedConnection

  • All Implemented Interfaces:
    ManagedConnection

    public abstract class AbstractManagedConnection
    extends java.lang.Object
    implements ManagedConnection
    Abstract implementation of a managed connection. There are three primary modes for a connection.
    • Transactional - the commit of connection is controlled external to this class, and when we release the connection it is handed back into a pooled state, available for reuse.
    • Non-transactional (1) - the commit of the connection happens at close and when we release the connection it closes the connection (after committing it).
    • Non-transactional (2) - the commit of the connection happens at release, and when we release the connection it is handed back into a pooled state, available for reuse.
    • Field Detail

      • conn

        protected java.lang.Object conn
        The underlying (datastore-specific) connection.
      • closeOnRelease

        protected boolean closeOnRelease
        Whether we should close() when release() of the connection is called.
      • commitOnRelease

        protected boolean commitOnRelease
        Whether we should commit() the connection on release().
      • locked

        protected boolean locked
        Whether the connection is locked for use.
      • useCount

        protected int useCount
        Count on the number of outstanding uses of this connection. Incremented on get. Decremented on release().
      • processingClose

        boolean processingClose
    • Constructor Detail

      • AbstractManagedConnection

        public AbstractManagedConnection()