public abstract class Destroyable extends Object implements 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<Void> |
destroyAsync()
Requests destruction of this object.
|
public final void close()
destroyAsync()
without waiting for completion.close
in interface AutoCloseable
public void destroy() throws InterruptedException, ExecutionException
destroyAsync()
. Calls destroyAsync()
and waits for the returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.Copyright © 2015. All rights reserved.