public interface Call<T> extends Cloneable
clone()
to make multiple
calls with the same parameters to the same webserver; this may be used to implement polling or
to retry a failed call.
Calls may be executed synchronously with execute()
, or asynchronously with enqueue(retrofit.Callback<T>)
. In either case the call can be canceled at any time with cancel()
. A call that
is busy writing its request or reading its response may receive a IOException
; this is
working as designed.
Response<T> execute() throws IOException
IOException
void cancel()
Copyright © 2015 Square, Inc.. All Rights Reserved.