public class RemoteFunctionList extends RemoteFunction
RemoteFunction
that is intended to call remote functions that return a list
of objects in the form of a GluonObservableList
. The objects in the list are parsed from the completed
response of the call to the remote function. This is in contrast with the RemoteFunctionChunkedList
where
each object is handled individually.Modifier and Type | Method and Description |
---|---|
<E> GluonObservableList<E> |
call(java.lang.Class<E> objectClass)
Triggers a call to the remote function and returns a GluonObservableList that contains the retrieved objects.
|
<E> GluonObservableList<E> |
call(InputStreamIterableInputConverter<E> converter)
Triggers a call to the remote function and returns a GluonObservableList that contains the retrieved objects.
|
clearCache, getFunctionName, getParams, getRawBody, isCachingEnabled, setRawBody
public <E> GluonObservableList<E> call(java.lang.Class<E> objectClass)
objectClass
based on the response of
the remote function call will be determined automatically. Use call(InputStreamIterableInputConverter)
to specify a custom converter that can handle the response.E
- the type of the objects contained in the listobjectClass
- the class of the objects contained in the listpublic <E> GluonObservableList<E> call(InputStreamIterableInputConverter<E> converter)
converter
.E
- the type of the objects contained in the listconverter
- the converter to use for transforming the response of the remote function into a list of objects