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

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

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

import Energistics.Datatypes.MessageHeader;
import Energistics.Protocol.Core.OpenSession;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.CountDownLatch;

public class RequestSessionMessageProcessor extends ETPMessageProcessor {

    private static final Logger LOGGER = LoggerFactory.getLogger(RequestSessionMessageProcessor.class);

    @Override
    public OpenSession parse(@NotNull CountDownLatch messageLatch, @NotNull MessageHeader header, @NotNull OpenSession body) {
        LOGGER.debug("Returning open session with id: {} ", body.getSessionId());
        messageLatch.countDown();
        return body;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy