RTI Connext Java API  Version 6.0.0
 All Classes Namespaces Functions Variables Groups Pages
SampleData< T > Interface Reference

Sample base type that contains data and has an identity. More...

Inheritance diagram for SampleData< T >:
Copyable Sample< T > WriteSample< T >

Public Member Functions

getData ()
 Gets the data this sample contains.
 
SampleIdentity_t getIdentity ()
 Gets the identity of this sample.
 
- Public Member Functions inherited from Copyable
Object copy_from (Object src)
 Copy value of a data type from source.
 

Detailed Description

Sample base type that contains data and has an identity.

This is the base interface for samples received by the middleware (com.rti.connext.infrastructure.Sample<T>) and samples used to write (com.rti.connext.infrastructure.WriteSample<T>)

Template Parameters
TThe data type that this sample contains

Member Function Documentation

T getData ( )

Gets the data this sample contains.

See Also
Basic Requester example
SampleIdentity_t getIdentity ( )

Gets the identity of this sample.

The identity is assigned by the middleware upon reception.

See Also
Correlating requests and replies

RTI Connext Java API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc