Class PartitionRequestListenerManager
java.lang.Object
org.apache.flink.runtime.io.network.partition.PartitionRequestListenerManager
Manages partition request listener with input channel id.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmpty()voidregisterListener(PartitionRequestListener listener) voidremove(InputChannelID receiverId) voidremoveExpiration(long now, long timeout, Collection<PartitionRequestListener> timeoutListeners) Remove the expire partition request listener and add it to the given timeoutListeners.
-
Constructor Details
-
PartitionRequestListenerManager
public PartitionRequestListenerManager()
-
-
Method Details
-
getPartitionRequestListeners
-
remove
-
isEmpty
public boolean isEmpty() -
registerListener
-
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
-