T
- Our return type.public class RemoteCall<T>
extends java.lang.Object
Constructor and Description |
---|
RemoteCall(java.util.concurrent.Callable<T> callable) |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<T> |
flowable()
Provide an flowable to emit result from our function.
|
T |
send()
Perform request synchronously.
|
java.util.concurrent.CompletableFuture<T> |
sendAsync()
Perform request asynchronously with a future.
|
public RemoteCall(java.util.concurrent.Callable<T> callable)
public T send() throws java.lang.Exception
java.lang.Exception
- if the function throws an exceptionpublic java.util.concurrent.CompletableFuture<T> sendAsync()
public io.reactivex.Flowable<T> flowable()