public class QosDeadline extends Parameter implements DataReaderPolicy<QosDeadline>, DataWriterPolicy<QosDeadline>, TopicPolicy<QosDeadline>, InlineQoS, Changeable
This policy must be consistent with QosTimeBasedFilter, so that period ≤ minimum_separation. See 7.1.3.7 DEADLINE
Constructor and Description |
---|
QosDeadline(Duration period)
Constructor with period given as Duration
|
QosDeadline(long periodAsMillis)
Constructor with period given as milliseconds
|
Modifier and Type | Method and Description |
---|---|
static QosDeadline |
defaultDeadline()
Gets a default QosDeadline with period Duration_t.INFINITE
|
Duration |
getPeriod()
Get the period of this DEADLINE policy.
|
boolean |
isCompatible(QosDeadline other)
Checks, if this QosDeadline is compatible with the other QosPolicy.
|
void |
read(RTPSByteBuffer bb,
int length) |
String |
toString() |
void |
writeTo(RTPSByteBuffer bb)
Writes this Parameter into given RTPSByteBuffer
|
getBytes, getParameterId, readBytes, writeBytes
public QosDeadline(long periodAsMillis)
periodAsMillis
- millisecondspublic QosDeadline(Duration period)
period
- Durationpublic void read(RTPSByteBuffer bb, int length)
public void writeTo(RTPSByteBuffer bb)
Parameter
public Duration getPeriod()
public boolean isCompatible(QosDeadline other)
isCompatible
in interface QosPolicy<QosDeadline>
other
- Requested QosPolicypublic static QosDeadline defaultDeadline()
Copyright © 2016. All rights reserved.