Package com.gigaspaces.lrmi
Class OneWayMethodRepository
java.lang.Object
com.gigaspaces.lrmi.OneWayMethodRepository
This class provides repository of one-way remote methods.
If remote interface method doesn't have explicit
Using this class you can make registration of one-way method to the underlying transport protocol.
If remote interface method doesn't have explicit
OneWayRemoteCall annotation definition or OneWayRemoteCall
annotation can't be defined for Remote interface due the thirty party provider. Using this class you can make registration of one-way method to the underlying transport protocol.
Important: Best practice to register one-way methods before starting invoke this method remotely or in static initializer or remote stub.
- Since:
- 5.2
- Author:
- Igor Goldenberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck whether theMethodregistered as one-way to the underlying transport protocol.static voidRegister 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.
-
Constructor Details
-
OneWayMethodRepository
public OneWayMethodRepository()
-
-
Method Details
-
register
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.- Throws:
IllegalArgumentException- The provided method is not instance of Remote interface.
-
isOneWay
Check whether theMethodregistered as one-way to the underlying transport protocol.- Parameters:
method- the method to check.- Returns:
trueif the method registered as one-way, otherwisefalse.
-