public interface WritableStorageFactory extends StorageFactory
The database engine will call this interface's methods from its own privilege blocks.
Each WritableStorageFactory instance may be concurrently used by multiple threads.
VERSION_NUMBER
Modifier and Type | Method and Description |
---|---|
boolean |
supportsWriteSync()
This method tests whether the StorageRandomAccessFile "rws" and "rwd" modes
are implemented.
|
void |
sync(java.io.OutputStream stream,
boolean metaData)
Force the data of an output stream out to the underlying storage.
|
createTemporaryFile, getCanonicalName, getSeparator, getStorageFactoryVersion, getTempDir, init, isFast, isReadOnlyDatabase, newStorageFile, newStorageFile, newStorageFile, setCanonicalName, shutdown, supportsRandomAccess
void sync(java.io.OutputStream stream, boolean metaData) throws java.io.IOException, java.io.SyncFailedException
stream
- The stream to be synchronized.metaData
- If true then this method must force both changes to the file's
contents and metadata to be written to storage; if false, it need only force file content changes
to be written. The implementation is allowed to ignore this parameter and always force out
metadata changes.java.io.IOException
- if an I/O error occurs.java.io.SyncFailedException
- Thrown when the buffers cannot be flushed,
or because the system cannot guarantee that all the buffers have been
synchronized with physical media.boolean supportsWriteSync()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.