com.quotemedia.streamer.client.impl.MessageGroupImpl 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.util.List;
/**
* Defines message group that wasn't sent as a block by the server but was read together.
* These messages aren't linked to each other in any way.
*/
// TODO: revisit this approach because although combining messages that weren't sent as a block into a
// MessageBlockImpl doesn't seem quite right, creating a message type just to capture how the messages
// were pulled off the stream doesn't seem quite right either
public class MessageGroupImpl implements SMessage {
private List messages;
public MessageGroupImpl(List messages) {
this.messages = messages;
}
public List getMessages() {
return messages;
}
@Override
public char type() {
throw new UnsupportedOperationException();
}
@Override
public long sequencenumber() {
throw new UnsupportedOperationException();
}
@Override
public long timestamp() {
throw new UnsupportedOperationException();
}
@Override
public int id() {
throw new UnsupportedOperationException();
}
@Override
public char encoding() {
throw new UnsupportedOperationException();
}
@Override
public char mimetype() {
throw new UnsupportedOperationException();
}
@Override
public String payload() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy