PHP 클래스 Kafka\Protocol\Fetch\Partition

저자: $_SWANBR_AUTHOR_$ +------------------------------------------------------------------------------
상속: implements Iterator, implements Countable
파일 보기 프로젝트 열기: nmred/kafka-php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Kafka\Protocol\Fetch\Topic $topic, array $context = [] ) __construct
count ( ) : integer implements Countable function
current ( ) : mixed current
getErrCode ( ) : float get partition errcode
getHighOffset ( ) : float get partition high offset
getMessageOffset ( ) : integer get messageSet fetch offset current
getStream ( ) : Socket get current stream
getTopicName ( ) : string get partition topic name
key ( ) : string key
loadNextPartition ( ) : boolean load next partition
next ( ) : void implements Iterator function
rewind ( ) : integer implements Iterator function
setMessageOffset ( integer $offset ) : void set messageSet fetch offset current
valid ( ) : integer implements Iterator function

보호된 메소드들

메소드 설명
getPartitionCount ( ) : integer get message size only use to object init

메소드 상세

__construct() 공개 메소드

__construct
public __construct ( Kafka\Protocol\Fetch\Topic $topic, array $context = [] )
$topic Kafka\Protocol\Fetch\Topic
$context array

count() 공개 메소드

implements Countable function
public count ( ) : integer
리턴 integer

current() 공개 메소드

current
public current ( ) : mixed
리턴 mixed

getErrCode() 공개 메소드

get partition errcode
public getErrCode ( ) : float
리턴 float

getHighOffset() 공개 메소드

get partition high offset
public getHighOffset ( ) : float
리턴 float

getMessageOffset() 공개 메소드

get messageSet fetch offset current
public getMessageOffset ( ) : integer
리턴 integer

getPartitionCount() 보호된 메소드

get message size only use to object init
protected getPartitionCount ( ) : integer
리턴 integer

getStream() 공개 메소드

get current stream
public getStream ( ) : Socket
리턴 Kafka\Socket

getTopicName() 공개 메소드

get partition topic name
public getTopicName ( ) : string
리턴 string

key() 공개 메소드

key
public key ( ) : string
리턴 string

loadNextPartition() 공개 메소드

load next partition
public loadNextPartition ( ) : boolean
리턴 boolean

next() 공개 메소드

implements Iterator function
public next ( ) : void
리턴 void

rewind() 공개 메소드

implements Iterator function
public rewind ( ) : integer
리턴 integer

setMessageOffset() 공개 메소드

set messageSet fetch offset current
public setMessageOffset ( integer $offset ) : void
$offset integer
리턴 void

valid() 공개 메소드

implements Iterator function
public valid ( ) : integer
리턴 integer