PHP 클래스 Kafka\Protocol\Encoder

저자: $_SWANBR_AUTHOR_$ +------------------------------------------------------------------------------
상속: extends Kafka\Protocol\Protocol
파일 보기 프로젝트 열기: nmred/kafka-php 1 사용 예제들

공개 메소드들

메소드 설명
commitOffsetRequest ( array $payloads ) : string build consumer commit offset request
encodeArray ( array $array, Callable $func, null $options = null ) : string encode key array
encodeMessageSet ( array $messages, integer $compression = self::COMPRESSION_NONE ) : string encode message set N.B., MessageSets are not preceded by an int32 like other array elements in the protocol.
encodeString ( string $string, integer $bytes, integer $compression = self::COMPRESSION_NONE ) : string encode pack string type
fetchOffsetRequest ( array $payloads ) : string build consumer fetch offset request
fetchRequest ( array $payloads ) : string build fetch request
metadataRequest ( array $topics ) : string build metadata request protocol
offsetRequest ( array $payloads ) : string build offset request
produceRequest ( array $payloads, integer $compression = self::COMPRESSION_NONE ) : integer produce request
requestHeader ( string $clientId, integer $correlationId, integer $apiKey ) : string get request header

보호된 메소드들

메소드 설명
_encodeCommitOffset ( $values ) : string encode signal topic
_encodeCommitOffsetPartion ( $values ) : string encode signal part
_encodeFetchOffset ( $values ) : string encode signal topic
_encodeFetchOffsetPartion ( $values ) : string encode signal part
_encodeFetchPartion ( $values ) : string encode signal part
_encodeFetchTopic ( $values ) : string encode signal topic
_encodeMessage ( string $message, integer $compression = self::COMPRESSION_NONE ) : string encode signal message
_encodeOffsetPartion ( $values ) : string encode signal part
_encodeOffsetTopic ( $values ) : string encode signal topic
_encodeProcudePartion ( $values, $compression ) : string encode signal part
_encodeProcudeTopic ( $values, $compression ) : string encode signal topic

메소드 상세

_encodeCommitOffset() 보호된 정적인 메소드

encode signal topic
protected static _encodeCommitOffset ( $values ) : string
리턴 string

_encodeCommitOffsetPartion() 보호된 정적인 메소드

encode signal part
protected static _encodeCommitOffsetPartion ( $values ) : string
리턴 string

_encodeFetchOffset() 보호된 정적인 메소드

encode signal topic
protected static _encodeFetchOffset ( $values ) : string
리턴 string

_encodeFetchOffsetPartion() 보호된 정적인 메소드

encode signal part
protected static _encodeFetchOffsetPartion ( $values ) : string
리턴 string

_encodeFetchPartion() 보호된 정적인 메소드

encode signal part
protected static _encodeFetchPartion ( $values ) : string
리턴 string

_encodeFetchTopic() 보호된 정적인 메소드

encode signal topic
protected static _encodeFetchTopic ( $values ) : string
리턴 string

_encodeMessage() 보호된 정적인 메소드

encode signal message
protected static _encodeMessage ( string $message, integer $compression = self::COMPRESSION_NONE ) : string
$message string
$compression integer
리턴 string

_encodeOffsetPartion() 보호된 정적인 메소드

encode signal part
protected static _encodeOffsetPartion ( $values ) : string
리턴 string

_encodeOffsetTopic() 보호된 정적인 메소드

encode signal topic
protected static _encodeOffsetTopic ( $values ) : string
리턴 string

_encodeProcudePartion() 보호된 정적인 메소드

encode signal part
protected static _encodeProcudePartion ( $values, $compression ) : string
$values
$compression
리턴 string

_encodeProcudeTopic() 보호된 정적인 메소드

encode signal topic
protected static _encodeProcudeTopic ( $values, $compression ) : string
$values
$compression
리턴 string

commitOffsetRequest() 공개 메소드

build consumer commit offset request
public commitOffsetRequest ( array $payloads ) : string
$payloads array
리턴 string

encodeArray() 공개 정적인 메소드

encode key array
public static encodeArray ( array $array, Callable $func, null $options = null ) : string
$array array
$func Callable
$options null
리턴 string

encodeMessageSet() 공개 정적인 메소드

encode message set N.B., MessageSets are not preceded by an int32 like other array elements in the protocol.
public static encodeMessageSet ( array $messages, integer $compression = self::COMPRESSION_NONE ) : string
$messages array
$compression integer
리턴 string

encodeString() 공개 정적인 메소드

encode pack string type
public static encodeString ( string $string, integer $bytes, integer $compression = self::COMPRESSION_NONE ) : string
$string string
$bytes integer self::PACK_INT32: int32 big endian order. self::PACK_INT16: int16 big endian order.
$compression integer
리턴 string

fetchOffsetRequest() 공개 메소드

build consumer fetch offset request
public fetchOffsetRequest ( array $payloads ) : string
$payloads array
리턴 string

fetchRequest() 공개 메소드

build fetch request
public fetchRequest ( array $payloads ) : string
$payloads array
리턴 string

metadataRequest() 공개 메소드

build metadata request protocol
public metadataRequest ( array $topics ) : string
$topics array
리턴 string

offsetRequest() 공개 메소드

build offset request
public offsetRequest ( array $payloads ) : string
$payloads array
리턴 string

produceRequest() 공개 메소드

produce request
public produceRequest ( array $payloads, integer $compression = self::COMPRESSION_NONE ) : integer
$payloads array
$compression integer
리턴 integer

requestHeader() 공개 정적인 메소드

get request header
public static requestHeader ( string $clientId, integer $correlationId, integer $apiKey ) : string
$clientId string
$correlationId integer
$apiKey integer
리턴 string