PHP Class Kafka\Protocol\Fetch\Partition

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
getPartitionCount ( ) : integer get message size only use to object init

Method Details

__construct() public méthode

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

count() public méthode

implements Countable function
public count ( ) : integer
Résultat integer

current() public méthode

current
public current ( ) : mixed
Résultat mixed

getErrCode() public méthode

get partition errcode
public getErrCode ( ) : float
Résultat float

getHighOffset() public méthode

get partition high offset
public getHighOffset ( ) : float
Résultat float

getMessageOffset() public méthode

get messageSet fetch offset current
public getMessageOffset ( ) : integer
Résultat integer

getPartitionCount() protected méthode

get message size only use to object init
protected getPartitionCount ( ) : integer
Résultat integer

getStream() public méthode

get current stream
public getStream ( ) : Socket
Résultat Kafka\Socket

getTopicName() public méthode

get partition topic name
public getTopicName ( ) : string
Résultat string

key() public méthode

key
public key ( ) : string
Résultat string

loadNextPartition() public méthode

load next partition
public loadNextPartition ( ) : boolean
Résultat boolean

next() public méthode

implements Iterator function
public next ( ) : void
Résultat void

rewind() public méthode

implements Iterator function
public rewind ( ) : integer
Résultat integer

setMessageOffset() public méthode

set messageSet fetch offset current
public setMessageOffset ( integer $offset ) : void
$offset integer
Résultat void

valid() public méthode

implements Iterator function
public valid ( ) : integer
Résultat integer