public class QosLifespan extends Parameter implements DataReaderPolicy<QosLifespan>, DataWriterPolicy<QosLifespan>, TopicPolicy<QosLifespan>, InlineQoS, Changeable
| Constructor and Description |
|---|
QosLifespan(Duration duration)
Constructor for QosLifespan.
|
QosLifespan(long millis)
Constructor for QosLifespan.
|
| Modifier and Type | Method and Description |
|---|---|
static QosLifespan |
defaultLifespan()
Get the default QosLifespan with infinite duration.
|
Duration |
getDuration()
Get the Duration of lifespan
|
boolean |
isCompatible(QosLifespan other)
Checks, if this QosPolicy is compatible with other QosPolicy.
|
void |
read(RTPSByteBuffer bb,
int length) |
String |
toString() |
void |
writeTo(RTPSByteBuffer bb)
Writes this Parameter into given RTPSByteBuffer
|
getBytes, getParameterId, readBytes, writeBytespublic QosLifespan(long millis)
millis - Duration as millispublic QosLifespan(Duration duration)
duration - Durationpublic Duration getDuration()
public void read(RTPSByteBuffer bb, int length)
public void writeTo(RTPSByteBuffer bb)
Parameterpublic boolean isCompatible(QosLifespan other)
QosPolicyisCompatible in interface QosPolicy<QosLifespan>other - Requested QosPolicypublic static QosLifespan defaultLifespan()
Copyright © 2016. All rights reserved.