Class OneWayMethodRepository

java.lang.Object
com.gigaspaces.lrmi.OneWayMethodRepository

public class OneWayMethodRepository extends Object
This class provides repository of one-way remote methods.
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OneWayMethodRepository

      public OneWayMethodRepository()
  • Method Details

    • register

      public static void register(IMethod method) throws IllegalArgumentException
      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

      public static boolean isOneWay(IMethod method)
      Check whether the Method registered as one-way to the underlying transport protocol.
      Parameters:
      method - the method to check.
      Returns:
      true if the method registered as one-way, otherwise false.