public class RemoteFunctionObject extends RemoteFunction
RemoteFunction that is intended to call remote functions that return single
objects in the form of a GluonObservableObject.| Modifier and Type | Method and Description |
|---|---|
<T> GluonObservableObject<T> |
call(java.lang.Class<T> objectClass)
Triggers a call to the remote function and returns a GluonObservableObject that contains the retrieved object.
|
<T> GluonObservableObject<T> |
call(InputStreamInputConverter<T> converter)
Triggers a call to the remote function and returns a GluonObservableObject that contains the retrieved object.
|
clearCache, getFunctionName, getParams, getRawBody, isCachingEnabled, setRawBodypublic <T> GluonObservableObject<T> call(java.lang.Class<T> objectClass)
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.T - the type of the object that is retrievedobjectClass - the class of the object to retrievepublic <T> GluonObservableObject<T> call(InputStreamInputConverter<T> converter)
converter.T - the type of the object that is retrievedconverter - the converter to use for transforming the response of the remote function into an object