Class DefaultBlocklistHandler.Factory
- java.lang.Object
-
- org.apache.flink.runtime.blocklist.DefaultBlocklistHandler.Factory
-
- All Implemented Interfaces:
BlocklistHandler.Factory
- Enclosing class:
- DefaultBlocklistHandler
public static class DefaultBlocklistHandler.Factory extends Object implements BlocklistHandler.Factory
The factory to instantiateDefaultBlocklistHandler
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlocklistHandler
create(BlocklistContext blocklistContext, Function<ResourceID,String> taskManagerNodeIdRetriever, ComponentMainThreadExecutor mainThreadExecutor, org.slf4j.Logger log)
Instantiates aBlocklistHandler
.
-
-
-
Constructor Detail
-
Factory
public Factory(Duration timeoutCheckInterval)
-
-
Method Detail
-
create
public BlocklistHandler create(BlocklistContext blocklistContext, Function<ResourceID,String> taskManagerNodeIdRetriever, ComponentMainThreadExecutor mainThreadExecutor, org.slf4j.Logger log)
Description copied from interface:BlocklistHandler.Factory
Instantiates aBlocklistHandler
.- Specified by:
create
in interfaceBlocklistHandler.Factory
- Parameters:
blocklistContext
- the blocklist contexttaskManagerNodeIdRetriever
- to map a task manager to the node it's located onmainThreadExecutor
- to schedule the timeout checklog
- the logger- Returns:
- an instantiated blocklist handler.
-
-