Class PartitionRequestListenerManager
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.PartitionRequestListenerManager
-
public class PartitionRequestListenerManager extends Object
Manages partition request listener with input channel id.
-
-
Constructor Summary
Constructors Constructor Description PartitionRequestListenerManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<PartitionRequestListener>
getPartitionRequestListeners()
boolean
isEmpty()
void
registerListener(PartitionRequestListener listener)
void
remove(InputChannelID receiverId)
void
removeExpiration(long now, long timeout, Collection<PartitionRequestListener> timeoutListeners)
Remove the expire partition request listener and add it to the given timeoutListeners.
-
-
-
Method Detail
-
getPartitionRequestListeners
public Collection<PartitionRequestListener> getPartitionRequestListeners()
-
remove
public void remove(InputChannelID receiverId)
-
isEmpty
public boolean isEmpty()
-
registerListener
public void registerListener(PartitionRequestListener listener)
-
removeExpiration
public void removeExpiration(long now, long timeout, Collection<PartitionRequestListener> timeoutListeners)
Remove the expire partition request listener and add it to the given timeoutListeners.- Parameters:
now
- the timestamptimeout
- the timeout millstimeoutListeners
- the expire partition request listeners
-
-