Class FilePathRetryOnInterrupt
java.lang.Object
org.h2.store.fs.FilePath
org.h2.store.fs.FilePathWrapper
org.h2.store.fs.retry.FilePathRetryOnInterrupt
A file system that re-opens and re-tries the operation if the file was
closed, because a thread was interrupted. This will clear the interrupt flag.
It is mainly useful for applications that call Thread.interrupt by mistake.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the scheme (prefix) for this file provider.Open a random access file object.Methods inherited from class FilePathWrapper
canWrite, createDirectory, createFile, createTempFile, delete, exists, getBase, getParent, getPath, getPrefix, isAbsolute, isDirectory, lastModified, moveTo, newDirectoryStream, newInputStream, newOutputStream, setReadOnly, size, toRealPath, unwrap, unwrap, wrapMethods inherited from class FilePath
get, getName, newFileChannelOutputStream, register, toString, unregister
-
Field Details
-
SCHEME
-
-
Constructor Details
-
FilePathRetryOnInterrupt
public FilePathRetryOnInterrupt()
-
-
Method Details
-
open
Description copied from class:FilePathOpen a random access file object.- Overrides:
openin classFilePathWrapper- Parameters:
mode- the access mode. Supported are r, rw, rws, rwd- Returns:
- the file object
- Throws:
IOException- If an I/O error occurs
-
getScheme
-