use of org.openkilda.messaging.info.ChunkedInfoMessage in project open-kilda by telstra.
the class KafkaMessagingChannelTest method prepareChunkedResponses.
/**
* Creates chunk of responses started from requestId, with predefined size.
*/
private void prepareChunkedResponses(String requestId, long timestamp, int size) {
for (int i = 0; i < size; i++) {
InfoData data = new SwitchInfoData(new SwitchId(i), SwitchChangeType.ACTIVATED, null, null, null, null, false);
ChunkedInfoMessage response = new ChunkedInfoMessage(data, timestamp, requestId, requestId + i, size);
CHUNKED_RESPONSES.add(response);
}
}
Aggregations