public abstract class AbstractPartitionTracker<K,M> extends Object implements PartitionTracker<K,M>
Constructor and Description |
---|
AbstractPartitionTracker() |
Modifier and Type | Method and Description |
---|---|
boolean |
isPartitionTracked(ResultPartitionID resultPartitionID)
Returns whether the given partition is being tracked.
|
boolean |
isTrackingPartitionsFor(K key)
Returns whether any partition is being tracked for the given key.
|
Collection<PartitionTrackerEntry<K,M>> |
stopTrackingPartitions(Collection<ResultPartitionID> resultPartitionIds)
Stops the tracking of the given partitions.
|
Collection<PartitionTrackerEntry<K,M>> |
stopTrackingPartitionsFor(K key)
Stops the tracking of all partitions for the given key.
|
public Collection<PartitionTrackerEntry<K,M>> stopTrackingPartitionsFor(K key)
PartitionTracker
stopTrackingPartitionsFor
in interface PartitionTracker<K,M>
public Collection<PartitionTrackerEntry<K,M>> stopTrackingPartitions(Collection<ResultPartitionID> resultPartitionIds)
PartitionTracker
stopTrackingPartitions
in interface PartitionTracker<K,M>
public boolean isTrackingPartitionsFor(K key)
PartitionTracker
isTrackingPartitionsFor
in interface PartitionTracker<K,M>
public boolean isPartitionTracked(ResultPartitionID resultPartitionID)
PartitionTracker
isPartitionTracked
in interface PartitionTracker<K,M>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.