com.almende.eve.transport
Class SyncCallback<T>

java.lang.Object
  extended by com.almende.eve.transport.SyncCallback<T>
All Implemented Interfaces:
AsyncCallback<T>

public class SyncCallback<T>
extends Object
implements AsyncCallback<T>


Constructor Summary
SyncCallback()
           
 
Method Summary
 T get()
          Get will wait for the request to finish and then return the response.
 void onFailure(Exception exception)
           
 void onSuccess(T response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncCallback

public SyncCallback()
Method Detail

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.