public class DataSourceUpdateEvent extends Object
Allows the Transformer module to access information about an
update that has been received. A DataSourceUpdateEvent object is
passed into the SubscriptionListener.update
method.
Constructor and Description |
---|
DataSourceUpdateEvent(int dataSourcePeerId,
TransformerData transformerData,
long time)
Constructs the DataSourceUpdateEvent with the specified peer
identifier, update object and time.
|
Modifier and Type | Method and Description |
---|---|
int |
getDataSourcePeerId()
Gets the identifier for the data source peer that supplied the
update.
|
long |
getTime()
Gets the time the update was received by the Transformer core.
|
TransformerData |
getTransformerData()
Gets the TransformerData object that represents the update.
|
public DataSourceUpdateEvent(int dataSourcePeerId, TransformerData transformerData, long time)
Constructs the DataSourceUpdateEvent with the specified peer identifier, update object and time.
dataSourcePeerId
- Identifier for the DataSource peer that
supplied the update.transformerData
- The update data from the Transformer.time
- The time the data was received by the
Transformer core. This is represented as
the number of seconds since 1st January
1970, 00:00:00.public int getDataSourcePeerId()
Gets the identifier for the data source peer that supplied the update.
public TransformerData getTransformerData()
Gets the TransformerData object that represents the update.
TransformerData
public long getTime()
Gets the time the update was received by the Transformer core. This is represented as the number of seconds since 1st January 1970, 00:00:00.
Please send bug reports and comments to Caplin support