public static class PartitionReservation.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PartitionReservation |
build() |
PartitionReservation.Builder |
committedOffset(Long committedOffset)
The latest offset which has been committed for this partition.
|
PartitionReservation.Builder |
copy(PartitionReservation model) |
PartitionReservation.Builder |
partition(String partition)
The partition for which the reservation applies.
|
PartitionReservation.Builder |
reservedInstance(String reservedInstance)
The consumer instance which currently has the partition reserved.
|
PartitionReservation.Builder |
timeReservedUntil(Date timeReservedUntil)
A timestamp when the current reservation expires.
|
public PartitionReservation.Builder partition(String partition)
The partition for which the reservation applies.
partition
- the value to setpublic PartitionReservation.Builder committedOffset(Long committedOffset)
The latest offset which has been committed for this partition.
committedOffset
- the value to setpublic PartitionReservation.Builder reservedInstance(String reservedInstance)
The consumer instance which currently has the partition reserved.
reservedInstance
- the value to setpublic PartitionReservation.Builder timeReservedUntil(Date timeReservedUntil)
A timestamp when the current reservation expires.
timeReservedUntil
- the value to setpublic PartitionReservation build()
public PartitionReservation.Builder copy(PartitionReservation model)
Copyright © 2016–2024. All rights reserved.