C# Class Kafka.Client.Request.OffsetRequest

Constructs a request to send to Kafka.
Inheritance: AbstractRequest
Afficher le fichier Open project: precog/kafka Class Usage Examples

Méthodes publiques

Свойство Type Description
EarliestTime long
LatestTime long

Méthodes publiques

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

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

IsValid() public méthode

Determines if the request has valid settings.
public IsValid ( ) : bool
Résultat bool

OffsetRequest() public méthode

Initializes a new instance of the OffsetRequest class.
public OffsetRequest ( ) : System
Résultat System

OffsetRequest() public méthode

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.
Résultat System

Property Details

EarliestTime public_oe static_oe property

The earliest time constant.
public static long EarliestTime
Résultat long

LatestTime public_oe static_oe property

The latest time constant.
public static long LatestTime
Résultat long