public abstract class Destroyable
extends oracle.pgx.api.internal.ApiObject
implements java.lang.AutoCloseable
Constructor and Description |
---|
Destroyable() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Calls
destroyAsync() without waiting for completion. |
void |
destroy()
Blocking version of
destroyAsync() . |
PgxFuture<java.lang.Void> |
destroyAsync()
Requests destruction of this object.
|
public final void close()
destroyAsync()
without waiting for completion.close
in interface java.lang.AutoCloseable
public void destroy() throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
destroyAsync()
. Calls destroyAsync()
and waits for the returned PgxFuture
to complete.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.public final PgxFuture<java.lang.Void> destroyAsync()
Copyright © 2017 Oracle Corp. All Rights Reserved.