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

net.intelie.liverig.witsml.etp.processor.StopStreamingMessageProcessor Maven / Gradle / Ivy

The newest version!
package net.intelie.liverig.witsml.etp.processor;

import Energistics.Datatypes.MessageHeader;
import Energistics.Protocol.ChannelStreaming.ChannelMetadata;
import org.apache.avro.io.BinaryDecoder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.concurrent.CountDownLatch;

public class StopStreamingMessageProcessor extends ETPMessageProcessor {

    protected ChannelMetadata tryRead(@NotNull ChannelMetadata body, @NotNull BinaryDecoder binaryDecoder) throws Exception {
        return body;
    }

    @Override
    public ChannelMetadata parse(@NotNull CountDownLatch messageLatch, @NotNull MessageHeader header, @Nullable ChannelMetadata body) {
        messageLatch.countDown();
        return body;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy