SendReceive
class SendReceive
Constructors
Functions
Link copied to clipboard
fun awaitRequest(key: ByteString, message: ProtoMessageWrapper, timeoutMs: Long = DEFALT_AWAIT_TIMEOUT, needNum: Boolean = true): ProtoMessageWrapper
fun awaitRequest(topic: String, key: ByteString, message: ProtoMessageWrapper, timeoutMs: Long = DEFALT_AWAIT_TIMEOUT, needNum: Boolean = true): ProtoMessageWrapper
Отправить запрос и дождаться ответа в синхронном стиле
Link copied to clipboard
fun awaitRequestFragments(topic: String = gtwTopic, key: ByteString, message: ProtoMessageWrapper, timeoutMs: Long = DEFALT_AWAIT_TIMEOUT_FRAGMENTS): List<ProtoMessageWrapper>
Отправить запрос и собрать все пакеты-ответы в список. Работает с ProtoErrorCode.FRAGMENTED_* и собирает пакеты пока не придёт последний с FRAGMENTED_END.
Link copied to clipboard