Modifier and Type | Class and Description |
---|---|
static class |
Call.AsyncCallTask<T> |
Constructor and Description |
---|
Call(IoTizeClient client,
Command command,
<any> decoder,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancel this call.
|
ICall<T> |
clone()
Create a new, identical call to this one which can be enqueued or executed even if this call
has already been.
|
<any> |
decoder() |
void |
enqueue(ICallback<T> callback)
Asynchronously send the request and notify
callback of its response or if an error
occurred talking to the server, creating the request, or processing the response. |
<any> |
execute()
Synchronously send the request and return its response.
|
T |
get()
Helper function that calls execute() and body()
|
java.lang.String |
getMethodName() |
android.os.AsyncTask.Status |
getStatus() |
boolean |
isCanceled()
True if
ICall.cancel() was called. |
boolean |
isExecuted()
Returns true if this call has been either executed or ICall.enqueue(ICallback).
|
Command |
request()
The original request.
|
public Call(IoTizeClient client, Command command, <any> decoder, java.lang.String name)
public <any> execute() throws java.lang.Exception
ICall
public void enqueue(ICallback<T> callback)
ICall
callback
of its response or if an error
occurred talking to the server, creating the request, or processing the response.public boolean isExecuted()
ICall
isExecuted
in interface ICall<T>
public void cancel()
ICall
public boolean isCanceled()
ICall
ICall.cancel()
was called.isCanceled
in interface ICall<T>
public android.os.AsyncTask.Status getStatus()
public ICall<T> clone()
ICall
public Command request()
ICall
public T get() throws java.lang.Exception
ICall
public <any> decoder()
public java.lang.String getMethodName()