Record Class PartitionMaintenanceEvent

java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.maintenance.PartitionMaintenanceEvent
Record Components:
historianName - the historian store that fired the event
tableName - the maintained table
partitionName - the partition name, for example "2026-04"
kind - the maintenance operation
minTimestamp - the partition's value-time floor
maxTimestamp - the partition's value-time ceiling

public record PartitionMaintenanceEvent(String historianName, String tableName, String partitionName, PartitionMaintenanceEvent.Kind kind, Instant minTimestamp, Instant maxTimestamp) extends Record
Fired by a historian after each durable partition-maintenance operation on a table. A PartitionMaintenanceListener rebuilds the corresponding command from the event's identity (store, table, partition, kind) and value-time bounds.

The value-time extent (maxTimestamp()) is on the event, so a listener never re-queries the store; a destructive command is held against it.

Since:
2027.02
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • historianName

      public String historianName()
      Returns the value of the historianName record component.
      Returns:
      the value of the historianName record component
    • tableName

      public String tableName()
      Returns the value of the tableName record component.
      Returns:
      the value of the tableName record component
    • partitionName

      public String partitionName()
      Returns the value of the partitionName record component.
      Returns:
      the value of the partitionName record component
    • kind

      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • minTimestamp

      public Instant minTimestamp()
      Returns the value of the minTimestamp record component.
      Returns:
      the value of the minTimestamp record component
    • maxTimestamp

      public Instant maxTimestamp()
      Returns the value of the maxTimestamp record component.
      Returns:
      the value of the maxTimestamp record component