public class RTPSReader<T> extends Endpoint
When Samples arrive at RTPSReader, they are passed on to DDS layer through ReaderCache. ReaderCache is implemented by DDS layer and is responsible for storing samples.
ReaderCache
,
RTPSParticipant.createReader(EntityId, String, ReaderCache, QualityOfService)
Modifier and Type | Method and Description |
---|---|
WriterProxy |
addMatchedWriter(PublicationData writerData)
Adds a matched writer for this RTPSReader.
|
void |
addWriterLivelinessListener(WriterLivelinessListener listener)
Adds WriterLivelinessListener
|
int |
endpointSetId()
Get the BuiltinEndpointSet ID of this RTPSReader. endpointSetId
represents a bit in BuiltinEndpointSet_t, found during discovery.
|
WriterProxy |
getMatchedWriter(Guid writerGuid) |
Collection<WriterProxy> |
getMatchedWriters()
Gets all the matched writers of this RTPSReader.
|
Collection<WriterProxy> |
getMatchedWriters(GuidPrefix prefix)
Gets the matched writers owned by given remote participant.
|
boolean |
isMatchedWith(Guid writerGuid)
Checks, if this RTPSReader is already matched with a RTPSWriter
represented by given Guid.
|
WriterProxy |
removeMatchedWriter(PublicationData writerData)
Removes a matched writer from this RTPSReader.
|
void |
removeMatchedWriters(GuidPrefix prefix)
Removes all the matched writers that have a given GuidPrefix
|
void |
removeWriterLivelinessListener(WriterLivelinessListener listener)
Adds WriterLivelinessListener
|
getEntityId, getGuid, getParticipant, getQualityOfService, getTopicName, isSecure, sendMessage
public int endpointSetId()
See 8.5.4.3 Built-in Endpoints required by the Simple Endpoint Discovery Protocol and table 9.4 BuiltinEndpointSet_t.
public WriterProxy addMatchedWriter(PublicationData writerData)
writerData
- PublicationDatapublic void removeMatchedWriters(GuidPrefix prefix)
prefix
- GuidPrefixpublic WriterProxy removeMatchedWriter(PublicationData writerData)
writerData
- writer to remove.public Collection<WriterProxy> getMatchedWriters()
public Collection<WriterProxy> getMatchedWriters(GuidPrefix prefix)
prefix
- GuidPrefix of the remote participantpublic WriterProxy getMatchedWriter(Guid writerGuid)
public boolean isMatchedWith(Guid writerGuid)
writerGuid
- Guid of the writerpublic void addWriterLivelinessListener(WriterLivelinessListener listener)
listener
- WriterLivelinessListenerpublic void removeWriterLivelinessListener(WriterLivelinessListener listener)
listener
- WriterLivelinessListenerCopyright © 2016. All rights reserved.