Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.client.api.interceptor
Interface RemoteCallInterceptor<T extends RemoteCallContext>

Type Parameters:
T - type of CallContext
All Known Subinterfaces:
RestClientInterceptor, RpcInterceptor
All Known Implementing Classes:
AuthenticationServiceInterceptor, ClientSecurityRoleInterceptor

public interface RemoteCallInterceptor<T extends RemoteCallContext>

Represents an interceptor for asynchronous remote method calls.

Author:
Christian Sadilek

Method Summary
 void aroundInvoke(T context)
          Interposes on the execution of remote method calls that should be intercepted.
 

Method Detail

aroundInvoke

void aroundInvoke(T context)
Interposes on the execution of remote method calls that should be intercepted.

Note that in contrast to local/synchronous method call interceptors, this method does not return a result as the actual remote call is executed asynchronously and the result is not available when this method returns.

To execute the actual remote call, invoke CallContext.proceed().

To get access to the remote call's result, call RemoteCallContext.proceed(RemoteCallback) or RemoteCallContext.proceed(RemoteCallback, ErrorCallback).

To change the result, call RemoteCallContext.setResult(Object).

Parameters:
context - the call context of the intercepted method, not null.

Errai 3.0.1-SNAPSHOT

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