Class RemoteFunctionObject

    • Method Detail

      • call

        public <T> GluonObservableObject<T> call​(Class<T> objectClass)
        Triggers a call to the remote function and returns a GluonObservableObject that contains the retrieved object. The converter that is responsible for providing an instance of objectClass based on the response of the remote function call will be determined automatically. Use call(InputStreamInputConverter) to specify a custom converter that can handle the response of the remote function.
        Type Parameters:
        T - the type of the object that is retrieved
        Parameters:
        objectClass - the class of the object to retrieve
        Returns:
        an instance of GluonObservableObject that will hold the retrieved object upon successful completion of the call to the remote function
      • call

        public <T> GluonObservableObject<T> call​(InputStreamInputConverter<T> converter)
        Triggers a call to the remote function and returns a GluonObservableObject that contains the retrieved object. The response from the call to the remote function will be converted by the specified converter.
        Type Parameters:
        T - the type of the object that is retrieved
        Parameters:
        converter - the converter to use for transforming the response of the remote function into an object
        Returns:
        an instance of GluonObservableObject that will hold the retrieved object upon successful completion of the call to the remote function