public interface ApplicationProxy
Remote services can be called using their name.
| Modifier and Type | Method and Description |
|---|---|
<TResult> java.util.concurrent.Future<TResult> |
get(java.lang.Class<TResult> manifest,
java.lang.String command,
int[] expectedStatus)
When the remote service doesn't require any arguments it can be called
using the
get method. |
<TArgument,TResult> |
post(java.lang.Class<TResult> manifest,
java.lang.String command,
TArgument argument,
int[] expectedStatus)
When the remote service requires arguments a message with the serialized
payload will be sent.
|
<TResult> java.util.concurrent.Future<TResult> get(java.lang.Class<TResult> manifest,
java.lang.String command,
int[] expectedStatus)
get method. The class needs to be provided for
deserialization.TResult - result typemanifest - result class for deserializationcommand - remote service nameexpectedStatus - expected status from remote call<TArgument,TResult> java.util.concurrent.Future<TResult> post(java.lang.Class<TResult> manifest,
java.lang.String command,
TArgument argument,
int[] expectedStatus)
TArgument - argument typeTResult - result typemanifest - result class for deserializationcommand - remote service nameargument - remote service argumentexpectedStatus - expected status from remote call