public final class LinkedDataControl extends Object
control object for
AsyncDataController instances controlling the data retrieval process
of two AsyncDataLink instances. AsyncDataController
implementations understanding this class will then send the
main control data to the AsyncDataLink
they consider the primary AsyncDataLink instance and the
secondary control data to the
AsyncDataLink instance they consider secondary.
Note that the AsyncDataLink instance created by the
AsyncLinks.convertResultAsync(AsyncDataLink, AsyncDataQuery) method
understands this class.
LinkedDataControl instance is completely immutable.
| Constructor and Description |
|---|
LinkedDataControl(Object mainControlData,
Object secondaryControlData)
Creates and initializes the
LinkedDataControl instance with the
specified control objects. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getMainControlData()
Returns the control object used to control the primary
AsyncDataLink instance. |
Object |
getSecondaryControlData()
Returns the control object used to control the secondary
AsyncDataLink instance. |
String |
toString()
Returns the string representation of this
LinkedDataControl in no
particular format. |
public LinkedDataControl(Object mainControlData, Object secondaryControlData)
LinkedDataControl instance with the
specified control objects.mainControlData - the control object used to control the primary
AsyncDataLink instance. This argument cannot be null.secondaryControlData - the control object used to control the
secondary AsyncDataLink instance. This argument cannot be
null.NullPointerException - thrown if any of the arguments is
nullpublic Object getMainControlData()
AsyncDataLink instance.AsyncDataLink instance. This method never returns null.public Object getSecondaryControlData()
AsyncDataLink instance.AsyncDataLink instance. This method never returns null.public String toString()
LinkedDataControl in no
particular format. The string representation contains the string
representation of both control objects.
This method is intended to be used for debugging only.