Module com.gluonhq.cloudlink.client
Class GluonCloudRemoteFunctionObjectDataReaderImpl<T>
- java.lang.Object
-
- com.gluonhq.impl.cloudlink.client.data.function.GluonCloudRemoteFunctionObjectDataReaderImpl<T>
-
- All Implemented Interfaces:
ObjectDataReader<T>
public class GluonCloudRemoteFunctionObjectDataReaderImpl<T> extends Object implements ObjectDataReader<T>
-
-
Constructor Summary
Constructors Constructor Description GluonCloudRemoteFunctionObjectDataReaderImpl(GluonObservableRemoteFunctionObjectImpl<T> observable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GluonObservableObject<T>
newGluonObservableObject()
Provide an instance of a GluonObservableObject.T
readObject()
Reads the object and returns it.
-
-
-
Constructor Detail
-
GluonCloudRemoteFunctionObjectDataReaderImpl
public GluonCloudRemoteFunctionObjectDataReaderImpl(GluonObservableRemoteFunctionObjectImpl<T> observable)
-
-
Method Detail
-
newGluonObservableObject
public GluonObservableObject<T> newGluonObservableObject()
Description copied from interface:ObjectDataReader
Provide an instance of a GluonObservableObject. This method is called byDataProvider.retrieveObject(ObjectDataReader)
to get a GluonObservableObject that will contain the actual object when the retrieve operation has completed successfully. Most implementations will just return an instance of GluonObservableObject itself. Note that it is perfectly valid to return existing instances of GluonObservableObject.- Specified by:
newGluonObservableObject
in interfaceObjectDataReader<T>
- Returns:
- an instance of a GluonObservableObject
-
readObject
public T readObject() throws IOException
Description copied from interface:ObjectDataReader
Reads the object and returns it. The actual source of the read and the method that converts the read data into an object instance is completely left to the implementation. This method is called byDataProvider.retrieveObject(ObjectDataReader)
to initiate the actual read process. The returned object will be set on the GluonObservableObject that is returned in theObjectDataReader.newGluonObservableObject()
method.- Specified by:
readObject
in interfaceObjectDataReader<T>
- Returns:
- the read object
- Throws:
IOException
- when an exception occurred during the read process
-
-