@ThreadSafe public final class TransientBinaryStore extends FileSystemBinaryStore
BinaryStore implementation that does not persist the binary values beyond the lifetime of the virtual machine. This
implementation extends FileSystemBinaryStore and uses a temporary directory. Thus, the binary values are not stored
in-memory.| Modifier and Type | Field and Description |
|---|---|
protected static File |
TRANSIENT_STORE_DIRECTORY |
TRASH_DIRECTORY_NAMElogger, MEDIUM_BUFFER_SIZE| Modifier and Type | Method and Description |
|---|---|
static TransientBinaryStore |
get()
Obtain a shared
TransientBinaryStore instance. |
protected void |
initializeStorage(File directory)
Ensures that the directory used by this binary store exists and can be both read and written to.
|
void |
start()
Initialize the store and get ready for use.
|
create, findFile, getAllBinaryKeys, getDirectory, getExtractedText, getInputStream, getStoredMimeType, markAsUnused, markAsUnused, moveFileExclusively, pruneEmptyDirectories, removeValuesUnusedLongerThan, storeExtractedText, storeMimeType, storeValue, touchbestBufferSize, detector, extractors, getMimeType, getMinimumBinarySizeInBytes, getText, hasBinary, setMimeTypeDetector, setMinimumBinarySizeInBytes, setTextExtractors, shutdown, storeValueprotected static final File TRANSIENT_STORE_DIRECTORY
public static TransientBinaryStore get()
TransientBinaryStore instance.public void start()
BinaryStorestart in interface BinaryStorestart in class AbstractBinaryStoreprotected void initializeStorage(File directory) throws BinaryStoreException
initializeStorage in class FileSystemBinaryStoreBinaryStoreException - if the directory cannot be written to, read, or (if needed) createdCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.