Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.client.api
Interface RemoteCallback<R>

Type Parameters:
R - type of response the callback expects. Use Void for methods returning void.
All Known Subinterfaces:
ResponseCallback
All Known Implementing Classes:
VoidCallback

public interface RemoteCallback<R>

Callback interface for receiving the response of an RPC call, regardless of the RPC mechanism.

See Also:
MessageBuilder#createCall(), MessageBuilder#createCall(RemoteCallback, Class), MessageBuilder#createCall(RemoteCallback, ErrorCallback, Class), Errai JAX-RS client module

Method Summary
 void callback(R response)
          Invoked by the RPC proxy after the remote method has been executed and its response has been received.
 

Method Detail

callback

void callback(R response)
Invoked by the RPC proxy after the remote method has been executed and its response has been received.

Parameters:
response - the response returned from the remote call. Will be null if the remote method returns null or has a void return type.

Errai 3.0.1-SNAPSHOT

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