Package com.oracle.bmc.http.internal
Class SyncFutureWaiter
- java.lang.Object
-
- com.oracle.bmc.http.internal.SyncFutureWaiter
-
- All Implemented Interfaces:
Executor
public final class SyncFutureWaiter extends Object implements Executor
Helper class that can wait for the result ofsome future
, and do some work registered through theExecutor
interface while waiting.The purpose of this is to make execution of synchronous methods look more synchronous, e.g. stack traces should actually contain the caller.
-
-
Constructor Summary
Constructors Constructor Description SyncFutureWaiter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Runnable command)
<R> R
listenForResult(CompletionStage<R> stage)
-