private class RemoteObject.RemoteAccess.Invoker extends java.lang.Object implements Invocable
transact
method.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
The description of the method being executed.
|
private RoutingKey |
key
Routing key for the
transact method. |
Constructor and Description |
---|
Invoker(RoutingKey key,
java.lang.String description)
Construct an instance that can make an invocation of a specific
remote method.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe()
Return a text description of the method being invoked.
|
java.lang.Object |
invoke(java.lang.Object[] args)
Execute or "run" the object's functionality.
|
private RoutingKey key
transact
method.private java.lang.String description
public Invoker(RoutingKey key, java.lang.String description)
key
- The routing key to use.description
- The description of the method being invoked.public java.lang.String describe()
public java.lang.Object invoke(java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface Invocable
args
- The method arguments or null
for no arguments.null
if
there is no return value. Note that this design does not
allow the caller to determine the difference between a
void
return and a return of a genuine
null
.java.lang.Throwable
- If the called method generates any exception or error.