public class OneWayMethodRepository extends Object
OneWayRemoteCall
annotation definition or OneWayRemoteCall
annotation can't be defined for Remote interface due the thirty party provider. Important: Best practice to register one-way methods before starting invoke this method remotely or in static initializer or remote stub.
Constructor and Description |
---|
OneWayMethodRepository() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isOneWay(IMethod method)
Check whether the
Method registered as one-way to the underlying transport protocol. |
static void |
register(IMethod method)
Register one way remote method to the underlying transport protocol.
Important: The declaring class of provided method must be an interface and extends from java.rmi.Remote interface. |
public static void register(IMethod method) throws IllegalArgumentException
IllegalArgumentException
- The provided method is not instance of Remote interface.public static boolean isOneWay(IMethod method)
Method
registered as one-way to the underlying transport protocol.method
- the method to check.true
if the method registered as one-way, otherwise false
.Copyright © GigaSpaces.