PHP Class Kafka\Protocol\Fetch\Partition

Author: $_SWANBR_AUTHOR_$ +------------------------------------------------------------------------------
Inheritance: implements Iterator, implements Countable
Show file Open project: nmred/kafka-php Class Usage Examples

Public Methods

Method Description
__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

Protected Methods

Method Description
getPartitionCount ( ) : integer get message size only use to object init

Method Details

__construct() public method

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

count() public method

implements Countable function
public count ( ) : integer
return integer

current() public method

current
public current ( ) : mixed
return mixed

getErrCode() public method

get partition errcode
public getErrCode ( ) : float
return float

getHighOffset() public method

get partition high offset
public getHighOffset ( ) : float
return float

getMessageOffset() public method

get messageSet fetch offset current
public getMessageOffset ( ) : integer
return integer

getPartitionCount() protected method

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

getStream() public method

get current stream
public getStream ( ) : Socket
return Kafka\Socket

getTopicName() public method

get partition topic name
public getTopicName ( ) : string
return string

key() public method

key
public key ( ) : string
return string

loadNextPartition() public method

load next partition
public loadNextPartition ( ) : boolean
return boolean

next() public method

implements Iterator function
public next ( ) : void
return void

rewind() public method

implements Iterator function
public rewind ( ) : integer
return integer

setMessageOffset() public method

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

valid() public method

implements Iterator function
public valid ( ) : integer
return integer