Top Description Fields Constructors Methods
org.h2.store.fs.retry

public Class FilePathRetryOnInterrupt

extends FilePathWrapper
Class Inheritance
Imports
java.io.IOException, java.nio.channels.FileChannel, org.h2.store.fs.FilePathWrapper

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

Modifier and TypeField and Description
pack-priv static final String
SCHEME

The prefix.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getScheme()

Implements abstract org.h2.store.fs.FilePath.getScheme.

Get the scheme (prefix) for this file provider.

public FileChannel
open(String
the access mode. Supported are r, rw, rws, rwd
mode
)

Overrides org.h2.store.fs.FilePathWrapper.open.

Open a random access file object.

Inherited from org.h2.store.fs.FilePathWrapper:
canWritecreateDirectorycreateFilecreateTempFiledeleteexistsgetBasegetParentgetPathgetPrefixisAbsoluteisDirectoryisRegularFilelastModifiedmoveTonewDirectoryStreamnewInputStreamnewOutputStreamsetReadOnlysizetoRealPathunwrapunwrapwrap

Field Detail

SCHEMEback to summary
pack-priv static final String SCHEME

The prefix.

Constructor Detail

FilePathRetryOnInterruptback to summary
public FilePathRetryOnInterrupt()

Method Detail

getSchemeback to summary
public String getScheme()

Implements abstract org.h2.store.fs.FilePath.getScheme.

Doc from org.h2.store.fs.FilePath.getScheme.

Get the scheme (prefix) for this file provider. This is similar to java.nio.file.spi.FileSystemProvider.getScheme.

Returns:String

the scheme

Annotations
@Override
openback to summary
public FileChannel open(String mode) throws IOException

Overrides org.h2.store.fs.FilePathWrapper.open.

Doc from org.h2.store.fs.FilePath.open.

Open a random access file object.

Parameters
mode:String

the access mode. Supported are r, rw, rws, rwd

Returns:FileChannel

the file object

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs