Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.client.api.builder
Interface RemoteCallResponseDef


public interface RemoteCallResponseDef

This interface, RemoteCallResponseDef is a template for creating a remote call response. It ensures that the response point is constructed properly


Method Summary
<T> RemoteCallErrorDef
respondTo(Class<T> returnType, RemoteCallback<T> callback)
          Sets the callback response function, which is called after an endpoint is reached
 

Method Detail

respondTo

<T> RemoteCallErrorDef respondTo(Class<T> returnType,
                                 RemoteCallback<T> callback)
Sets the callback response function, which is called after an endpoint is reached

Parameters:
returnType - - the return type of the callback function
callback - - the callback function
Returns:
an instance of RemoteCallErrorDef

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.