@Experimental(comment="https://jira.nuxeo.com/browse/NXP-16577") public interface StorageEntry extends Serializable
TransientStore
. The entry is will be stored in 2 sub parts :
the Blobs that will be stored in file system, and the java attributes that will be kept in memoryModifier and Type | Method and Description |
---|---|
void |
beforeRemove()
Callback to do some cleanup before entry is removed from the
TransientStore . |
Serializable |
get(String key)
Reads the value of named parameters.
|
List<Blob> |
getBlobs() |
String |
getId()
Returns the id associated with an entry In the default implementation this id must an ascii alphanumeric string
|
long |
getLastStorageSize()
Returns the size of the persisted Blobs.
|
Map<String,Serializable> |
getParameters()
Returns the named parameters.
|
long |
getSize()
Returns the size of the persisted Blobs
|
boolean |
isCompleted()
flag to indicate if result is ready.
|
void |
load(File directory)
Called by
TransientStore to load Blobs from disk. |
void |
persist(File directory)
Called by
TransientStore to persist the Blobs to disk and then be sure that the entry can be Serialized
without loosing any data. |
void |
put(String key,
Serializable value)
Add a named parameter to the entry
|
void |
putAll(Map<String,Serializable> params)
Put multiple named parameters.
|
void |
setBlobs(List<Blob> blobs)
Set the Blobs that must be associated with the entry
|
void |
setCompleted(boolean completed)
Mark the storage entry as ready.
|
String getId()
void put(String key, Serializable value)
key
- the name of the parametervalue
- the Serializable
valueSerializable get(String key)
void putAll(Map<String,Serializable> params)
Map<String,Serializable> getParameters()
void beforeRemove()
TransientStore
.void persist(File directory)
TransientStore
to persist the Blobs to disk and then be sure that the entry can be Serialized
without loosing any data.void load(File directory)
TransientStore
to load Blobs from disk.long getSize()
long getLastStorageSize()
boolean isCompleted()
void setCompleted(boolean completed)
Copyright © 2015 Nuxeo SA. All rights reserved.