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

com.quotemedia.streamer.client.impl.DecodedPayloadDecoder Maven / Gradle / Ivy

Go to download

Java streaming client that provides easy-to-use client APIs to connect and subscribe to QuoteMedia's market data streaming services. https://quotemedia.com/

The newest version!
package com.quotemedia.streamer.client.impl;

import com.quotemedia.streamer.messages.smessage.SMessage;

import java.io.IOException;

public class DecodedPayloadDecoder implements PayloadDecoder {
    @Override
    public Object decode(final SMessage in) throws IOException {
        if (in instanceof MessageImpl) {
            return ((MessageImpl) in).decodedpayload();
        } else if (in != null) { // Miss configured pipeline
            throw new IOException("Unsupported SMessage implementation " + in.getClass().getName());
        } else {
            return null;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy