org.apache.kafka.common.protocol
Class ProtoUtils
java.lang.Object
org.apache.kafka.common.protocol.ProtoUtils
public class ProtoUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProtoUtils
public ProtoUtils()
latestVersion
public static short latestVersion(int apiKey)
requestSchema
public static Schema requestSchema(int apiKey,
int version)
currentRequestSchema
public static Schema currentRequestSchema(int apiKey)
responseSchema
public static Schema responseSchema(int apiKey,
int version)
currentResponseSchema
public static Schema currentResponseSchema(int apiKey)
parseRequest
public static Struct parseRequest(int apiKey,
int version,
java.nio.ByteBuffer buffer)
parseResponse
public static Struct parseResponse(int apiKey,
java.nio.ByteBuffer buffer)