confluent-kafka-dotnet
Show / Hide Table of Contents

Class OffsetSpec

Used in ListOffsets to specify the desired offsets of the partition being queried.

Inheritance
object
OffsetSpec
OffsetSpec.EarliestSpec
OffsetSpec.LatestSpec
OffsetSpec.MaxTimestampSpec
OffsetSpec.TimestampSpec
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.Kafka.Admin
Assembly: Confluent.Kafka.dll
Syntax
public abstract class OffsetSpec

Methods

Earliest()

Returns the EarliestSpec instance.

Declaration
public static OffsetSpec Earliest()
Returns
Type Description
OffsetSpec

ForTimestamp(long)

Returns a new instance of TimestampSpec with the specified timestamp.

Declaration
public static OffsetSpec ForTimestamp(long timestamp)
Parameters
Type Name Description
long timestamp

Timestamp in milliseconds.

Returns
Type Description
OffsetSpec

Latest()

Returns the LatestSpec instance.

Declaration
public static OffsetSpec Latest()
Returns
Type Description
OffsetSpec

MaxTimestamp()

Returns the MaxTimestamp instance.

Declaration
public static OffsetSpec MaxTimestamp()
Returns
Type Description
OffsetSpec
In this article