PHP Class Kafka\Protocol\Fetch\MessageSet

Author: $_SWANBR_AUTHOR_$ +------------------------------------------------------------------------------
Inheritance: implements Iterator
Datei anzeigen Open project: nmred/kafka-php

Public Methods

Method Description
__construct ( Partition $partition, array $context = [] ) __construct
current ( ) : Kafka\Protocol\Fetch\Message current
key ( ) : float key
loadNextMessage ( ) : boolean load next message
messageOffset ( ) : float current message offset in producer
next ( ) : void implements Iterator function
rewind ( ) : integer implements Iterator function
valid ( ) : integer implements Iterator function

Protected Methods

Method Description
getMessageSetSize ( ) : integer get message set size

Method Details

__construct() public method

__construct
public __construct ( Partition $partition, array $context = [] )
$partition Partition
$context array

current() public method

current
public current ( ) : Kafka\Protocol\Fetch\Message
return Kafka\Protocol\Fetch\Message

getMessageSetSize() protected method

get message set size
protected getMessageSetSize ( ) : integer
return integer

key() public method

key
public key ( ) : float
return float

loadNextMessage() public method

load next message
public loadNextMessage ( ) : boolean
return boolean

messageOffset() public method

current message offset in producer
public messageOffset ( ) : float
return float

next() public method

implements Iterator function
public next ( ) : void
return void

rewind() public method

implements Iterator function
public rewind ( ) : integer
return integer

valid() public method

implements Iterator function
public valid ( ) : integer
return integer