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 |
|---|---|
rx.Observable<T> |
observable()
Provide an observable 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 rx.Observable<T> observable()