added received queue messages list
parent
ba3f361ac1
commit
894a3c7f16
|
@ -23,12 +23,15 @@ public class KraSocketClientProtocol {
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final HashMap<Integer, KraSocketClientProtocolMessage> sendQueueMessages;
|
private final HashMap<Integer, KraSocketClientProtocolMessage> sendQueueMessages;
|
||||||
|
@Getter
|
||||||
|
private final HashMap<Integer, KraSocketClientProtocolMessage> receivedQueueMessages;
|
||||||
|
|
||||||
public KraSocketClientProtocol() {
|
public KraSocketClientProtocol() {
|
||||||
//this.cmdIDs = new ArrayList<>();
|
//this.cmdIDs = new ArrayList<>();
|
||||||
this.currentCmdIDIndex = 9;
|
this.currentCmdIDIndex = 9;
|
||||||
//this.consumerHashMap = new HashMap<>();
|
//this.consumerHashMap = new HashMap<>();
|
||||||
this.sendQueueMessages = new HashMap<>();
|
this.sendQueueMessages = new HashMap<>();
|
||||||
|
this.receivedQueueMessages = new HashMap<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int generateCmdID() {
|
public int generateCmdID() {
|
||||||
|
@ -152,4 +155,8 @@ public class KraSocketClientProtocol {
|
||||||
|
|
||||||
this.consumerHashMap.remove(cmdID); */
|
this.consumerHashMap.remove(cmdID); */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void removeMessageFromReceivedQueue(int cmdID) {
|
||||||
|
this.receivedQueueMessages.remove(cmdID);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue