|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.store.fs.FilePath
org.h2.store.fs.FilePathWrapper
org.h2.store.fs.FilePathRetryOnInterrupt
public class 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 inherited from class org.h2.store.fs.FilePath |
|---|
name |
| Constructor Summary | |
|---|---|
FilePathRetryOnInterrupt()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getScheme()
Get the scheme (prefix) for this file provider. |
java.nio.channels.FileChannel |
open(java.lang.String mode)
Open a random access file object. |
| Methods inherited from class org.h2.store.fs.FilePathWrapper |
|---|
canWrite, createDirectory, createFile, createTempFile, delete, exists, getBase, getParent, getPath, getPrefix, isAbsolute, isDirectory, lastModified, moveTo, newDirectoryStream, newInputStream, newOutputStream, setReadOnly, size, toRealPath, unwrap, unwrap, wrap |
| Methods inherited from class org.h2.store.fs.FilePath |
|---|
get, getName, getNextTempFileNamePart, register, toString, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FilePathRetryOnInterrupt()
| Method Detail |
|---|
public java.nio.channels.FileChannel open(java.lang.String mode)
throws java.io.IOException
FilePath
open in class FilePathWrappermode - the access mode. Supported are r, rw, rws, rwd
java.io.IOExceptionpublic java.lang.String getScheme()
FilePathjava.nio.file.spi.FileSystemProvider.getScheme.
getScheme in class FilePath
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||