Class TaskMetadata
java.lang.Object
org.apache.kafka.streams.processor.TaskMetadata
@Deprecated public class TaskMetadata extends Object
Deprecated.
Represents the state of a single task running within a
KafkaStreams application.-
Constructor Summary
Constructors Constructor Description TaskMetadata(String taskId, Set<TopicPartition> topicPartitions, Map<TopicPartition,Long> committedOffsets, Map<TopicPartition,Long> endOffsets, Optional<Long> timeCurrentIdlingStarted)Deprecated. -
Method Summary
Modifier and Type Method Description Map<TopicPartition,Long>committedOffsets()Deprecated.This function will return a map of TopicPartitions and the highest committed offset seen so farMap<TopicPartition,Long>endOffsets()Deprecated.This function will return a map of TopicPartitions and the highest offset seen so far in the Topicbooleanequals(Object o)Deprecated.inthashCode()Deprecated.StringtaskId()Deprecated.Optional<Long>timeCurrentIdlingStarted()Deprecated.This function will return the time task idling started, if the task is not currently idling it will return emptySet<TopicPartition>topicPartitions()Deprecated.StringtoString()Deprecated.
-
Constructor Details
-
TaskMetadata
public TaskMetadata(String taskId, Set<TopicPartition> topicPartitions, Map<TopicPartition,Long> committedOffsets, Map<TopicPartition,Long> endOffsets, Optional<Long> timeCurrentIdlingStarted)Deprecated.
-
-
Method Details
-
taskId
Deprecated.- Returns:
- the basic task metadata such as subtopology and partition id
-
topicPartitions
Deprecated. -
committedOffsets
Deprecated.This function will return a map of TopicPartitions and the highest committed offset seen so far -
endOffsets
Deprecated.This function will return a map of TopicPartitions and the highest offset seen so far in the Topic -
timeCurrentIdlingStarted
Deprecated.This function will return the time task idling started, if the task is not currently idling it will return empty -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
TaskMetadatainstead.