com.quotemedia.streamer.client.impl.MessageImpl 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.LongSequence;
import com.quotemedia.streamer.messages.smessage.SMessage;
import com.quotemedia.streamer.messages.smessage.SMessageCodec;
import com.quotemedia.streamer.messages.smessage.UShortId;
final class MessageImpl implements SMessage {
volatile private char type = SMessageCodec.TYPE_1;
@Override
public char type() {
return this.type;
}
final MessageImpl type(final char val) {
this.type = val;
return this;
}
volatile private long sequencenumber = LongSequence.NULL_VALUE;
@Override
public long sequencenumber() {
return this.sequencenumber;
}
final MessageImpl sequencenumber(final long val) {
this.sequencenumber = val;
return this;
}
volatile private long timestamp;
@Override
public long timestamp() {
return this.timestamp;
}
final MessageImpl timestamp(final long val) {
this.timestamp = val;
return this;
}
volatile private int id = UShortId.NULL_VALUE;
@Override
public int id() {
return this.id;
}
final MessageImpl id(final int val) {
UShortId.check(val);
this.id = val;
return this;
}
volatile private char encoding;
@Override
public char encoding() {
return this.encoding;
}
final MessageImpl encoding(final char val) {
this.encoding = val;
return this;
}
volatile private char mimetype;
@Override
public char mimetype() {
return this.mimetype;
}
final MessageImpl mimetype(final char val) {
this.mimetype = val;
return this;
}
volatile private String payload;
@Override
public String payload() {
return this.payload;
}
final MessageImpl payload(final String val) {
this.payload = val;
return this;
}
volatile private Object decodedpayload;
public Object decodedpayload() {
return this.decodedpayload;
}
public MessageImpl decodedpayload(final Object val) {
this.decodedpayload = val;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy