public final class ExecutionEnvironment
extends oracle.pgx.api.internal.ApiObject
| Constructor and Description |
|---|
ExecutionEnvironment(PgxSession session, oracle.pgx.api.internal.CoreSessionApi coreSessionApi) |
| Modifier and Type | Method and Description |
|---|---|
CpuEnvironment |
getAnalysisEnvironment() |
CpuEnvironment |
getFastAnalysisEnvironment() |
IoEnvironment |
getIoEnvironment() |
PgxSession |
getSession() |
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
getValues()
Blocking version of
getValuesAsync(). |
PgxFuture<java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Object>>> |
getValuesAsync() |
void |
reset()
Blocking version of
resetAsync(). |
PgxFuture<java.lang.Void> |
resetAsync()
Resets the environment for this session to the configured default values.
|
java.lang.String |
toString() |
<T> T |
withMaxNumThreads(int maxNumThreads, java.util.function.Supplier<PgxFuture<T>> asyncRequest)
Blocking version of
withMaxNumThreadsAsync(int, Supplier). |
<T> PgxFuture<T> |
withMaxNumThreadsAsync(int maxNumThreads, java.util.function.Supplier<PgxFuture<T>> asyncRequest)
Executes the given asynchronous request with at most
maxNumThreads. |
public ExecutionEnvironment(PgxSession session, oracle.pgx.api.internal.CoreSessionApi coreSessionApi)
public CpuEnvironment getAnalysisEnvironment()
public CpuEnvironment getFastAnalysisEnvironment()
public IoEnvironment getIoEnvironment()
public PgxSession getSession()
public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Object>> getValues()
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException
getValuesAsync(). Calls getValuesAsync() and waits for 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 PgxFuture<java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Object>>> getValuesAsync()
public void reset()
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException
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 PgxFuture<java.lang.Void> resetAsync()
public java.lang.String toString()
toString in class java.lang.Object
public <T> T withMaxNumThreads(int maxNumThreads,
java.util.function.Supplier<PgxFuture<T>> asyncRequest)
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException
withMaxNumThreadsAsync(int, Supplier). Calls withMaxNumThreadsAsync(int, Supplier) and waits for 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 <T> PgxFuture<T> withMaxNumThreadsAsync(int maxNumThreads, java.util.function.Supplier<PgxFuture<T>> asyncRequest)
maxNumThreads. This affects all task types.maxNumThreads - the maximum number of threads to use for the requestasyncRequest - the asynchronous request to executeCopyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.