public class DefaultRemoteCallBuilder extends Object
MessageBuilder
.Constructor and Description |
---|
DefaultRemoteCallBuilder(Message message) |
Modifier and Type | Method and Description |
---|---|
<T,R> T |
call(RemoteCallback<R> callback,
BusErrorCallback errorCallback,
Class<T> remoteService) |
<T,R> T |
call(RemoteCallback<R> callback,
Class<T> remoteService) |
RemoteCallEndpointDef |
call(String serviceName)
Only intended for use by generated code.
|
static void |
destroyProxyFactory() |
static void |
setProxyFactory(ProxyFactory provider)
Sets the proxy provider factory that is used by MessageBuilder and friends for creating remote proxies.
|
public DefaultRemoteCallBuilder(Message message)
public <T,R> T call(RemoteCallback<R> callback, Class<T> remoteService)
public <T,R> T call(RemoteCallback<R> callback, BusErrorCallback errorCallback, Class<T> remoteService)
public RemoteCallEndpointDef call(String serviceName)
call(RemoteCallback, Class)
or
call(RemoteCallback, BusErrorCallback, Class)
from handwritten code.
Creates, implements and returns an instance of RemoteCallEndpointDef and all applicable arguments, which
should be instantiated after this call to serviceName. The endpoint allows a function from a service to be
called directly, rather than waiting for a response to a message.serviceName
- the service to call, and create a remote call endpoint forpublic static void setProxyFactory(ProxyFactory provider)
provider
- The ProxyProvider that provides RPC proxies to message builders. Not null.public static void destroyProxyFactory()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.