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 instantiate DefaultBlocklistHandler.
  • Constructor Details

    • Factory

      public Factory(Duration timeoutCheckInterval)
  • Method Details

    • create

      public BlocklistHandler create(BlocklistContext blocklistContext, Function<ResourceID,String> taskManagerNodeIdRetriever, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor, org.slf4j.Logger log)
      Description copied from interface: BlocklistHandler.Factory
      Instantiates a BlocklistHandler.
      Specified by:
      create in interface BlocklistHandler.Factory
      Parameters:
      blocklistContext - the blocklist context
      taskManagerNodeIdRetriever - to map a task manager to the node it's located on
      mainThreadExecutor - to schedule the timeout check
      log - the logger
      Returns:
      an instantiated blocklist handler.