C# Class Kafka.Client.Request.OffsetRequest

Constructs a request to send to Kafka.
Inheritance: AbstractRequest
Datei anzeigen Open project: precog/kafka Class Usage Examples

Public Properties

Property Type Description
EarliestTime long
LatestTime long

Public Methods

Method Description
GetBytes ( ) : byte[]

Converts the request to an array of bytes that is expected by Kafka.

IsValid ( ) : bool

Determines if the request has valid settings.

OffsetRequest ( ) : System

Initializes a new instance of the OffsetRequest class.

OffsetRequest ( string topic, int partition, long time, int maxOffsets ) : System

Initializes a new instance of the OffsetRequest class.

Method Details

GetBytes() public method

Converts the request to an array of bytes that is expected by Kafka.
public GetBytes ( ) : byte[]
return byte[]

IsValid() public method

Determines if the request has valid settings.
public IsValid ( ) : bool
return bool

OffsetRequest() public method

Initializes a new instance of the OffsetRequest class.
public OffsetRequest ( ) : System
return System

OffsetRequest() public method

Initializes a new instance of the OffsetRequest class.
public OffsetRequest ( string topic, int partition, long time, int maxOffsets ) : System
topic string The topic to publish to.
partition int The partition to publish to.
time long The time from which to request offsets.
maxOffsets int The maximum amount of offsets to return.
return System

Property Details

EarliestTime public_oe static_oe property

The earliest time constant.
public static long EarliestTime
return long

LatestTime public_oe static_oe property

The latest time constant.
public static long LatestTime
return long