Package kafka.server.share
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
ConstructorsConstructorDescriptionRemoteFetch(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 aRemoteFetchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.apache.kafka.server.LogReadResultReturns the value of thelogReadResultrecord component.org.apache.kafka.storage.internals.log.RemoteStorageFetchInfoReturns the value of theremoteFetchInforecord component.CompletableFuture<org.apache.kafka.storage.internals.log.RemoteLogReadResult> Returns the value of theremoteFetchResultrecord component.Returns the value of theremoteFetchTaskrecord component.org.apache.kafka.common.TopicIdPartitionReturns the value of thetopicIdPartitionrecord component.toString()Returns a string representation of this record class.
-
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 aRemoteFetchrecord class.- Parameters:
topicIdPartition- the value for thetopicIdPartitionrecord componentlogReadResult- the value for thelogReadResultrecord componentremoteFetchTask- the value for theremoteFetchTaskrecord componentremoteFetchResult- the value for theremoteFetchResultrecord componentremoteFetchInfo- the value for theremoteFetchInforecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
topicIdPartition
public org.apache.kafka.common.TopicIdPartition topicIdPartition()Returns the value of thetopicIdPartitionrecord component.- Returns:
- the value of the
topicIdPartitionrecord component
-
logReadResult
public org.apache.kafka.server.LogReadResult logReadResult()Returns the value of thelogReadResultrecord component.- Returns:
- the value of the
logReadResultrecord component
-
remoteFetchTask
Returns the value of theremoteFetchTaskrecord component.- Returns:
- the value of the
remoteFetchTaskrecord component
-
remoteFetchResult
public CompletableFuture<org.apache.kafka.storage.internals.log.RemoteLogReadResult> remoteFetchResult()Returns the value of theremoteFetchResultrecord component.- Returns:
- the value of the
remoteFetchResultrecord component
-
remoteFetchInfo
public org.apache.kafka.storage.internals.log.RemoteStorageFetchInfo remoteFetchInfo()Returns the value of theremoteFetchInforecord component.- Returns:
- the value of the
remoteFetchInforecord component
-