Record Class PendingRemoteFetches.RemoteFetch

java.lang.Object
java.lang.Record
kafka.server.share.PendingRemoteFetches.RemoteFetch
Enclosing class:
PendingRemoteFetches

public static record PendingRemoteFetches.RemoteFetch(org.apache.kafka.common.TopicIdPartition topicIdPartition, org.apache.kafka.server.LogReadResult logReadResult, Future<Void> remoteFetchTask, CompletableFuture<org.apache.kafka.storage.internals.log.RemoteLogReadResult> remoteFetchResult, org.apache.kafka.storage.internals.log.RemoteStorageFetchInfo remoteFetchInfo) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoteFetch(org.apache.kafka.common.TopicIdPartition topicIdPartition, org.apache.kafka.server.LogReadResult logReadResult, Future<Void> remoteFetchTask, CompletableFuture<org.apache.kafka.storage.internals.log.RemoteLogReadResult> remoteFetchResult, org.apache.kafka.storage.internals.log.RemoteStorageFetchInfo remoteFetchInfo)
    Creates an instance of a RemoteFetch record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.apache.kafka.server.LogReadResult
    Returns the value of the logReadResult record component.
    org.apache.kafka.storage.internals.log.RemoteStorageFetchInfo
    Returns the value of the remoteFetchInfo record component.
    CompletableFuture<org.apache.kafka.storage.internals.log.RemoteLogReadResult>
    Returns the value of the remoteFetchResult record component.
    Returns the value of the remoteFetchTask record component.
    org.apache.kafka.common.TopicIdPartition
    Returns the value of the topicIdPartition record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RemoteFetch

      public RemoteFetch(org.apache.kafka.common.TopicIdPartition topicIdPartition, org.apache.kafka.server.LogReadResult logReadResult, Future<Void> remoteFetchTask, CompletableFuture<org.apache.kafka.storage.internals.log.RemoteLogReadResult> remoteFetchResult, org.apache.kafka.storage.internals.log.RemoteStorageFetchInfo remoteFetchInfo)
      Creates an instance of a RemoteFetch record class.
      Parameters:
      topicIdPartition - the value for the topicIdPartition record component
      logReadResult - the value for the logReadResult record component
      remoteFetchTask - the value for the remoteFetchTask record component
      remoteFetchResult - the value for the remoteFetchResult record component
      remoteFetchInfo - the value for the remoteFetchInfo record component
  • Method Details

    • toString

      public 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.
    • topicIdPartition

      public org.apache.kafka.common.TopicIdPartition topicIdPartition()
      Returns the value of the topicIdPartition record component.
      Returns:
      the value of the topicIdPartition record component
    • logReadResult

      public org.apache.kafka.server.LogReadResult logReadResult()
      Returns the value of the logReadResult record component.
      Returns:
      the value of the logReadResult record component
    • remoteFetchTask

      public Future<Void> remoteFetchTask()
      Returns the value of the remoteFetchTask record component.
      Returns:
      the value of the remoteFetchTask record component
    • remoteFetchResult

      public CompletableFuture<org.apache.kafka.storage.internals.log.RemoteLogReadResult> remoteFetchResult()
      Returns the value of the remoteFetchResult record component.
      Returns:
      the value of the remoteFetchResult record component
    • remoteFetchInfo

      public org.apache.kafka.storage.internals.log.RemoteStorageFetchInfo remoteFetchInfo()
      Returns the value of the remoteFetchInfo record component.
      Returns:
      the value of the remoteFetchInfo record component