org.apache.kafka.common.protocol
Class ProtoUtils

java.lang.Object
  extended by org.apache.kafka.common.protocol.ProtoUtils

public class ProtoUtils
extends java.lang.Object


Constructor Summary
ProtoUtils()
           
 
Method Summary
static Schema currentRequestSchema(int apiKey)
           
static Schema currentResponseSchema(int apiKey)
           
static short latestVersion(int apiKey)
           
static Struct parseRequest(int apiKey, int version, java.nio.ByteBuffer buffer)
           
static Struct parseResponse(int apiKey, java.nio.ByteBuffer buffer)
           
static Schema requestSchema(int apiKey, int version)
           
static Schema responseSchema(int apiKey, int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoUtils

public ProtoUtils()
Method Detail

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)