Constructor and Description |
---|
OkHttp3ResponseFuture() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel() |
boolean |
cancel(boolean mayInterruptIfRunning) |
boolean |
completed(Object response) |
boolean |
failed(Exception exception) |
Object |
get() |
Object |
get(long timeout,
TimeUnit unit) |
boolean |
isCancelled() |
boolean |
isDone() |
public boolean isCancelled()
isCancelled
in interface Future<Object>
public Object get() throws InterruptedException, ExecutionException
get
in interface Future<Object>
InterruptedException
ExecutionException
public Object get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<Object>
InterruptedException
ExecutionException
TimeoutException
public boolean completed(Object response)
public boolean failed(Exception exception)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean cancel()
Copyright © 2022. All rights reserved.