com.refinitiv.eta.json.converter.GetJsonMsgOptionsImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etajConverter Show documentation
Show all versions of etajConverter Show documentation
Elektron Transport API (ETA) Java Edition Converter Classes
The newest version!
/*|-----------------------------------------------------------------------------
*| This source code is provided under the Apache 2.0 license
*| and is provided AS IS with no warranty or guarantee of fit for purpose.
*| See the project's LICENSE.md for details.
*| Copyright (C) 2019-2022 LSEG. All rights reserved.
*|-----------------------------------------------------------------------------
*/
package com.refinitiv.eta.json.converter;
class GetJsonMsgOptionsImpl implements GetJsonMsgOptions {
private Integer streamId = null;
private int transportProtocol;
private int jsonProtocolType;
private boolean solicited;
private boolean isCloseMsg;
GetJsonMsgOptionsImpl() {}
public void clear() {
streamId = null;
transportProtocol = 0;
jsonProtocolType = JsonProtocol.JSON_JPT_UNKNOWN;
solicited = false;
isCloseMsg = false;
}
public GetJsonMsgOptionsImpl streamId(int streamId) {
this.streamId = streamId;
return this;
}
public GetJsonMsgOptionsImpl transportProtocolType(int protocol) {
this.transportProtocol = protocol;
return this;
}
public GetJsonMsgOptionsImpl jsonProtocolType(int protocol) {
this.jsonProtocolType = protocol;
return this;
}
public GetJsonMsgOptionsImpl isSolicited(boolean solicited) {
this.solicited = solicited;
return this;
}
public GetJsonMsgOptionsImpl isCloseMsg(boolean isClose) {
this.isCloseMsg = isClose;
return this;
}
public Integer getStreamId() {
return streamId;
}
public int getTransportProtocol() {
return transportProtocol;
}
public int getJsonProtocolType() {
return jsonProtocolType;
}
public boolean isCloseMsg() {
return isCloseMsg;
}
public boolean isSolicited() {
return solicited;
}
}