com.almende.eve.transport
Class SyncCallback<T>
java.lang.Object
com.almende.eve.transport.SyncCallback<T>
- All Implemented Interfaces:
- AsyncCallback<T>
public class SyncCallback<T>
- extends Object
- implements AsyncCallback<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyncCallback
public SyncCallback()
onSuccess
public void onSuccess(T response)
- Specified by:
onSuccess
in interface AsyncCallback<T>
onFailure
public void onFailure(Exception exception)
- Specified by:
onFailure
in interface AsyncCallback<T>
get
public T get()
throws Exception
- Get will wait for the request to finish and then return the
response. If an exception is returned, the exception will be
thrown.
- Returns:
- response
- Throws:
Exception
Copyright © 2013 Almende BV. All Rights Reserved.