public class RTPSWriter<T> extends Endpoint
WriterCache,
RTPSParticipant.createWriter(EntityId, String, WriterCache, QualityOfService)| Modifier and Type | Method and Description |
|---|---|
ReaderProxy |
addMatchedReader(SubscriptionData readerData)
Add a matched reader.
|
void |
assertLiveliness()
Assert liveliness of this writer.
|
void |
close()
Close this writer.
|
int |
endpointSetId()
Get the BuiltinEndpointSet ID of this RTPSWriter.
|
Collection<ReaderProxy> |
getMatchedReaders()
Gets all the matched readers of this RTPSWriter
|
Collection<ReaderProxy> |
getMatchedReaders(GuidPrefix prefix)
Gets the matched readers owned by given remote participant.
|
boolean |
isAcknowledgedByAll(long sequenceNumber)
Checks, if a given change number has been acknowledged by every known
matched reader.
|
boolean |
isMatchedWith(Guid readerGuid)
Checks, if this RTPSWriter is already matched with a RTPSReader
represented by given Guid.
|
void |
notifyReader(Guid guid)
Notifies a remote reader with given Guid of the changes available in this writer.
|
void |
notifyReaders()
Notify every matched RTPSReader.
|
void |
registerContentFilter(ContentFilter<T> cf)
Registers a ContentFilter
|
void |
removeMatchedReader(SubscriptionData readerData)
Remove a matched reader.
|
void |
removeMatchedReaders(GuidPrefix prefix)
Removes all the matched writers that have a given GuidPrefix
|
getEntityId, getGuid, getParticipant, getQualityOfService, getTopicName, isSecure, sendMessagepublic int endpointSetId()
public void notifyReaders()
public void notifyReader(Guid guid)
guid - Guid of the reader to notifypublic void assertLiveliness()
public void close()
public ReaderProxy addMatchedReader(SubscriptionData readerData)
readerData - SubscriptionData of the readerpublic void removeMatchedReaders(GuidPrefix prefix)
prefix - GuidPrefixpublic void removeMatchedReader(SubscriptionData readerData)
readerData - SubscriptionData of the reader to be removedpublic Collection<ReaderProxy> getMatchedReaders()
public Collection<ReaderProxy> getMatchedReaders(GuidPrefix prefix)
prefix - GuidPrefix of the remote participantpublic void registerContentFilter(ContentFilter<T> cf)
cf - ContentFilterNullPointerException - if cf.getContentFilterProperty() returns nullpublic boolean isAcknowledgedByAll(long sequenceNumber)
sequenceNumber - sequenceNumber of a change to checkpublic boolean isMatchedWith(Guid readerGuid)
readerGuid - Guid of the readerCopyright © 2016. All rights reserved.