com.quotemedia.streamer.client.impl.DecodedPayloadDecoder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of streamerclient-java-core Show documentation
Show all versions of streamerclient-java-core Show documentation
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