类 OffloadersCache

java.lang.Object
org.apache.bookkeeper.mledger.offload.OffloadersCache
所有已实现的接口:
AutoCloseable

public class OffloadersCache extends Object implements AutoCloseable
Implementation of an Offloaders. The main purpose of this class is to ensure that an Offloaders directory is only loaded once.
  • 构造器详细资料

    • OffloadersCache

      public OffloadersCache()
  • 方法详细资料

    • getOrLoadOffloaders

      public Offloaders getOrLoadOffloaders(String offloadersPath, String narExtractionDirectory)
      Method to load an Offloaders directory or to get an already loaded Offloaders directory.
      参数:
      offloadersPath - - the directory to search the offloaders nar files
      narExtractionDirectory - - the directory to use for extraction
      返回:
      the loaded offloaders class
      抛出:
      IOException - when fail to retrieve the pulsar offloader class
    • close

      public void close()
      指定者:
      close 在接口中 AutoCloseable