Class Destroyable

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    AllPaths, Analyst, Partition, PgxFrameBuilder, PgxManagedObject, PgxPath

    public abstract class Destroyable
    extends oracle.pgx.api.internal.ApiObject
    implements java.lang.AutoCloseable
    Sub-classes of Destroyable can be explicitly destroyed
    • Constructor Detail

      • Destroyable

        public Destroyable()
    • Method Detail

      • destroyAsync

        public abstract PgxFuture<java.lang.Void> destroyAsync()
        Requests destruction of this object. After this method returns, the behavior of any method of this class becomes undefined.
        Returns:
        a future which will be completed once the destruction request finishes.
      • close

        public void close()
        Calls destroyAsync() without waiting for completion.
        Specified by:
        close in interface java.lang.AutoCloseable
      • destroy

        public void destroy()
                     throws java.lang.InterruptedException,
                            java.util.concurrent.ExecutionException
        Blocking version of destroyAsync(). Calls destroyAsync() and waits for the returned PgxFuture to complete.
        Throws:
        java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.
        java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.