public class QosHistory extends Parameter implements DataReaderPolicy<QosHistory>, TopicPolicy<QosHistory>, DataWriterPolicy<QosHistory>
Modifier and Type | Class and Description |
---|---|
static class |
QosHistory.Kind |
Constructor and Description |
---|
QosHistory(int depth)
Constructs QosHistory with kind KEEP_LAST and given depth
|
QosHistory(QosHistory.Kind kind,
int depth)
Constructs QosHistory given kind and depth
|
Modifier and Type | Method and Description |
---|---|
static QosHistory |
defaultHistory()
Get the default QosHistory: KEEP_LAST, 1
|
int |
getDepth()
Get the depth of this QosHistory.
|
QosHistory.Kind |
getKind() |
boolean |
isCompatible(QosHistory 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, writeBytes
public QosHistory(int depth)
depth
- Depth of historypublic QosHistory(QosHistory.Kind kind, int depth)
kind
- KEEP_LAST or KEEP_ALLdepth
- depth of historypublic int getDepth()
public void read(RTPSByteBuffer bb, int length)
public void writeTo(RTPSByteBuffer bb)
Parameter
public QosHistory.Kind getKind()
public boolean isCompatible(QosHistory other)
QosPolicy
isCompatible
in interface QosPolicy<QosHistory>
other
- Requested QosPolicypublic static QosHistory defaultHistory()
Copyright © 2016. All rights reserved.