public class RemoteService
extends java.lang.Object
RemoteService remoteService = new RemoteService(remotingChannel, "myService");
remoteService.newInvocation("myMethod", arg1, arg2).invoke();
It is also possible to chain multiple invocations in one single call:
RemoteService remoteService = new RemoteService(remotingChannel, "myService");
remoteService.newInvocation("myMethod", arg1, arg2).appendInvocation("myMethod2", arg3).invoke();
| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteService.RemoteServiceInvocation |
static interface |
RemoteService.RemoteServiceInvocationChain |
| Constructor and Description |
|---|
RemoteService(Channel channel,
java.lang.String id)
Create a remote service for the specified channel and destination
|
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel()
Remoting channel
|
java.lang.String |
getId()
Destination id
|
RemoteService.RemoteServiceInvocation |
newInvocation(java.lang.String method,
java.lang.Object... parameters)
Create an invocation for this service
|
public RemoteService(Channel channel, java.lang.String id)
channel - messaging channelid - remote destination namepublic Channel getChannel()
public java.lang.String getId()
public RemoteService.RemoteServiceInvocation newInvocation(java.lang.String method, java.lang.Object... parameters)
method - remote method nameparameters - arguments to send