All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.jrtps.message.parameter.QosDurabilityService Maven / Gradle / Ivy

package net.sf.jrtps.message.parameter;

import net.sf.jrtps.transport.RTPSByteBuffer;

public class QosDurabilityService extends Parameter implements DataWriterPolicy,
        TopicPolicy {
    QosDurabilityService() {
        super(ParameterEnum.PID_DURABILITY_SERVICE);
    }

    @Override
    public void read(RTPSByteBuffer bb, int length) {
        readBytes(bb, length);
    }

    @Override
    public void writeTo(RTPSByteBuffer bb) {
        writeBytes(bb);
    }

    @Override
    public boolean isCompatible(QosDurabilityService other) {
        return true; // Always true
    }

    public static QosDurabilityService defaultDurabilityService() {
        return new QosDurabilityService();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy