org.apache.camel.component.salesforce.internal.client
Class SyncResponseCallback
java.lang.Object
org.apache.camel.component.salesforce.internal.client.SyncResponseCallback
- All Implemented Interfaces:
- RestClient.ResponseCallback
public class SyncResponseCallback
- extends Object
- implements RestClient.ResponseCallback
Thin wrapper to handle callbacks for RestClient.ResponseCallback
and allow waiting for results
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyncResponseCallback
public SyncResponseCallback()
onResponse
public void onResponse(InputStream response,
SalesforceException exception)
- Specified by:
onResponse
in interface RestClient.ResponseCallback
reset
public void reset()
await
public boolean await(long duration,
TimeUnit unit)
throws InterruptedException
- Throws:
InterruptedException
getResponse
public InputStream getResponse()
getException
public SalesforceException getException()
Apache Camel