类 OffloadersCache
java.lang.Object
org.apache.bookkeeper.mledger.offload.OffloadersCache
- 所有已实现的接口:
AutoCloseable
Implementation of an Offloaders. The main purpose of this class is to
ensure that an Offloaders directory is only loaded once.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclose()getOrLoadOffloaders(String offloadersPath, String narExtractionDirectory) Method to load an Offloaders directory or to get an already loaded Offloaders directory.
-
构造器详细资料
-
OffloadersCache
public OffloadersCache()
-
-
方法详细资料
-
getOrLoadOffloaders
Method to load an Offloaders directory or to get an already loaded Offloaders directory.- 参数:
offloadersPath- - the directory to search the offloaders nar filesnarExtractionDirectory- - 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
-