PartitionReservation

class oci.streaming.models.PartitionReservation(**kwargs)

Bases: object

Represents the state of a single partition reservation.

Methods:

__init__(**kwargs)

Initializes a new PartitionReservation object with values from keyword arguments.

Attributes:

committed_offset

Gets the committed_offset of this PartitionReservation.

partition

Gets the partition of this PartitionReservation.

reserved_instance

Gets the reserved_instance of this PartitionReservation.

time_reserved_until

Gets the time_reserved_until of this PartitionReservation.

__init__(**kwargs)

Initializes a new PartitionReservation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • partition (str) – The value to assign to the partition property of this PartitionReservation.

  • committed_offset (int) – The value to assign to the committed_offset property of this PartitionReservation.

  • reserved_instance (str) – The value to assign to the reserved_instance property of this PartitionReservation.

  • time_reserved_until (datetime) – The value to assign to the time_reserved_until property of this PartitionReservation.

property committed_offset

Gets the committed_offset of this PartitionReservation. The latest offset which has been committed for this partition.

Returns

The committed_offset of this PartitionReservation.

Return type

int

property partition

Gets the partition of this PartitionReservation. The partition for which the reservation applies.

Returns

The partition of this PartitionReservation.

Return type

str

property reserved_instance

Gets the reserved_instance of this PartitionReservation. The consumer instance which currently has the partition reserved.

Returns

The reserved_instance of this PartitionReservation.

Return type

str

property time_reserved_until

Gets the time_reserved_until of this PartitionReservation. A timestamp when the current reservation expires.

Returns

The time_reserved_until of this PartitionReservation.

Return type

datetime