public class NilBinaryPersistenceImpl extends BinaryPersistence
| Constructor and Description |
|---|
NilBinaryPersistenceImpl(BinaryStorageConfiguration binaryStorageConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Release resources and performs cleanup actions.
|
void |
deleteBinary(java.lang.String key)
Delete binary data by key from binary storage.
|
long |
fetchSize(java.lang.String key)
Fetch record size.
|
byte[] |
loadBinaryAsByteArray(java.lang.String key)
Fetch binary data by key from binary storage.
|
java.io.InputStream |
loadBinaryAsInputStream(java.lang.String key)
Fetch binary data by key from binary storage.
|
void |
storeBinary(java.lang.String key,
byte[] content)
Store binary data in binary storage.
|
void |
storeBinary(java.lang.String key,
java.io.InputStream stream)
Store binary data in binary storage.
|
public NilBinaryPersistenceImpl(BinaryStorageConfiguration binaryStorageConfig)
throws BinaryStorageException
BinaryStorageExceptionpublic void cleanup()
throws BinaryStorageException
cleanup in class BinaryPersistenceBinaryStorageException - in case of any exceptionBinaryPersistence.cleanup()public void deleteBinary(java.lang.String key)
throws BinaryStorageException
deleteBinary in class BinaryPersistencekey - String - unique identifier inside of binary storageBinaryStorageException - -
in case of any exception occursBinaryPersistence.deleteBinary(java.lang.String)public long fetchSize(java.lang.String key)
throws BinaryStorageException
fetchSize in class BinaryPersistencekey - String - unique identifier inside of binary storageBinaryStorageException - - in case of any exception occursBinaryPersistence.fetchSize(java.lang.String)public byte[] loadBinaryAsByteArray(java.lang.String key)
throws BinaryStorageException
loadBinaryAsByteArray in class BinaryPersistencekey - String - unique identifier inside of binary storageBinaryStorageException - -
in case of any exception occursBinaryPersistence.loadBinaryAsByteArray(java.lang.String)public java.io.InputStream loadBinaryAsInputStream(java.lang.String key)
throws BinaryStorageException
loadBinaryAsInputStream in class BinaryPersistencekey - String - unique identifier inside of binary storageBinaryStorageException - -
in case of any exception occursBinaryPersistence.loadBinaryAsInputStream(java.lang.String)public void storeBinary(java.lang.String key,
java.io.InputStream stream)
throws BinaryStorageException
storeBinary in class BinaryPersistencekey - String - unique identifier inside of binary storagestream - InputStream - binary data input streamBinaryStorageException - -
in case of any exception occursBinaryPersistence.storeBinary(java.lang.String,
java.io.InputStream)public void storeBinary(java.lang.String key,
byte[] content)
throws BinaryStorageException
storeBinary in class BinaryPersistencekey - String - unique identifier inside of binary storagecontent - byte[] - binary contentBinaryStorageException - -
in case of any exception occursBinaryPersistence.storeBinary(java.lang.String, byte[])