Class PmemUtilWrapper
java.lang.Object
org.infinispan.persistence.sifs.pmem.PmemUtilWrapper
This class is here solely for the purpose of encapsulating the
PmemUtil
class so we do not load it unless
necessary, allowing this to be an optional dependency. Any code that invokes a method in this class should first
check if the PmemUtil
can be loaded via Class.forName(String)
otherwise a ClassNotFoundException
may be thrown when loading this class.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileChannel
pmemChannelFor
(File file, int length, boolean create, boolean readSharedMetadata) Same asPmemUtil.pmemChannelFor(File, int, boolean, boolean)
.
-
Constructor Details
-
PmemUtilWrapper
public PmemUtilWrapper()
-
-
Method Details
-
pmemChannelFor
public static FileChannel pmemChannelFor(File file, int length, boolean create, boolean readSharedMetadata) throws FileNotFoundException Same asPmemUtil.pmemChannelFor(File, int, boolean, boolean)
.- Throws:
FileNotFoundException
-