Interface ResourceOwner

All Superinterfaces:
Lifespan

public interface ResourceOwner extends Lifespan
The representation of a PostgreSQL ResourceOwner, usable as a PL/Java Lifespan.

The ResourceOwner API in PostgreSQL is described here.

PostgreSQL invokes callbacks in phases when a ResourceOwner is released, and all of its built-in consumers get notified before loadable modules (like PL/Java) for each phase in turn. The release behavior of this PL/Java instance is tied to the RESOURCE_RELEASE_LOCKS phase of the underlying PostgreSQL object, and therefore occurs after all of the built-in PostgreSQL lock-related releases, but before any of the built-in stuff released in the RESOURCE_RELEASE_AFTER_LOCKS phase.

  • Method Details

    • CurrentResourceOwner

      static ResourceOwner CurrentResourceOwner()
    • CurTransactionResourceOwner

      static ResourceOwner CurTransactionResourceOwner()
    • TopTransactionResourceOwner

      static ResourceOwner TopTransactionResourceOwner()