use of io.zeebe.protocol.clientapi.ControlMessageResponseDecoder in project zeebe by zeebe-io.
the class BufferingServerOutput method getAsControlMessageData.
public Map<String, Object> getAsControlMessageData(int index) {
final ControlMessageResponseDecoder decoder = getAs(index, new ControlMessageResponseDecoder());
final UnsafeBuffer dataBuf = new UnsafeBuffer(new byte[decoder.dataLength()]);
decoder.getData(dataBuf, 0, dataBuf.capacity());
return msgPackDecoder.readMsgPack(new DirectBufferInputStream(dataBuf));
}
Aggregations