com.quotemedia.streamer.client.impl.StompPayloadEncoder 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.fasterxml.jackson.databind.ObjectMapper;
import com.quotemedia.streamer.messages.control.CtrlMessage;
import java.io.IOException;
import static com.google.common.base.Preconditions.checkNotNull;
public class StompPayloadEncoder {
private final ObjectMapper json;
public StompPayloadEncoder(ObjectMapper json) {
this.json = checkNotNull(json);
}
public String encode(CtrlMessage data) throws IOException {
return this.json.writeValueAsString(data);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy