RTI Connext Java API  Version 5.1.0
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 5.1.0 Copyright © Mon Feb 3 2014 Real-Time Innovations, Inc