C# Class Kafka.Client.Requests.OffsetRequest

Constructs a request to send to Kafka to get the current offset for a given topic
Inheritance: AbstractRequest, IWritable
Datei anzeigen Open project: precog/kafka Class Usage Examples

Public Properties

Property Type Description
EarliestTime long
LatestTime long

Public Methods

Method Description
GetRequestLength ( string topic, string encoding = DefaultEncoding ) : int
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.

WriteTo ( KafkaBinaryWriter writer ) : void

Writes content into given writer

WriteTo ( System output ) : void

Writes content into given stream

Method Details

GetRequestLength() public static method

public static GetRequestLength ( string topic, string encoding = DefaultEncoding ) : int
topic string
encoding string
return int

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

WriteTo() public method

Writes content into given writer
public WriteTo ( KafkaBinaryWriter writer ) : void
writer Kafka.Client.Serialization.KafkaBinaryWriter /// The writer. ///
return void

WriteTo() public method

Writes content into given stream
public WriteTo ( System output ) : void
output System /// The output stream. ///
return void

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