public abstract class BlockingTransport extends java.lang.Object implements Transport
send call.AsyncTransport| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ExecutorService |
executor |
| Modifier | Constructor and Description |
|---|---|
protected |
BlockingTransport() |
protected |
BlockingTransport(boolean useDedicatedExecutor)
Creates new transport with dynamic thread pool.
|
protected |
BlockingTransport(int numberOfThreads)
Creates new transport with fixed number of threads.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<Response> |
sendAsync(Request request)
Sends client request and returns promise/future of a response.
|
protected BlockingTransport()
protected BlockingTransport(boolean useDedicatedExecutor)
protected BlockingTransport(int numberOfThreads)