public class SyncResponseCallback extends Object implements RestClient.ResponseCallback
RestClient.ResponseCallback and allow waiting for results| Constructor and Description |
|---|
SyncResponseCallback() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
await(long duration,
TimeUnit unit) |
SalesforceException |
getException() |
InputStream |
getResponse() |
void |
onResponse(InputStream response,
SalesforceException exception) |
void |
reset() |
public void onResponse(InputStream response, SalesforceException exception)
onResponse in interface RestClient.ResponseCallbackpublic void reset()
public boolean await(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic InputStream getResponse()
public SalesforceException getException()
Apache Camel