com.quotemedia.streamer.client.impl.MessageBlockImpl Maven / Gradle / Ivy
package com.quotemedia.streamer.client.impl;
import com.quotemedia.streamer.messages.smessage.SMessage;
import java.util.Collection;
public class MessageBlockImpl implements SMessage {
public static final char TYPEID = 'B';
@Override
public char type() {
return TYPEID;
}
volatile private long sequencenumber;
@Override
public long sequencenumber() {
return this.sequencenumber;
}
public MessageBlockImpl sequencenumber(final long val) {
this.sequencenumber = val;
return this;
}
volatile private long timestamp;
@Override
public long timestamp() {
return this.timestamp;
}
public MessageBlockImpl timestamp(final long val) {
this.timestamp = val;
return this;
}
volatile private int id;
@Override
public int id() {
return this.id;
}
public MessageBlockImpl id(final int val) {
this.id = val;
return this;
}
volatile private char encoding;
@Override
public char encoding() {
return this.encoding;
}
public MessageBlockImpl encoding(final char val) {
this.encoding = val;
return this;
}
volatile private char mimetype;
@Override
public char mimetype() {
return this.mimetype;
}
public MessageBlockImpl mimetype(final char val) {
this.mimetype = val;
return this;
}
@Override
public String payload() {
throw new UnsupportedOperationException();
}
volatile private Collection messages;
public Collection messages() {
return this.messages;
}
public MessageBlockImpl messages(final Collection val) {
this.messages = val;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy