public class SyncResponseCallback extends Object implements RestClient.ResponseCallback
RestClient.ResponseCallback
and allow waiting for resultsConstructor 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.ResponseCallback
public void reset()
public boolean await(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
public InputStream getResponse()
public SalesforceException getException()
Apache Camel