|
OverviewWhen using a persistent space there are situations where not all the Entries need to be stored in the persistent store. You can define the Entry to be stored only in the space cache, without storing it also in the persistent store, by setting its persistent mode to false. This setting must be specified when the Entry has been created and before it has been written to the space. After the Entry has been written to the space you cannot change its persistent mode. Transient Entries are treated the same as persistent objects, but when you call the write operation, only persistent Entries are saved to the persistent store. All space operations, including batch operations, are valid for transient Entries.
Transient Entries must implement the IMetaDataEntry or extend the MetaDataEntry classes. When the space memory usage control is turned on, a transient Entry might be evicted from the space cache. Having an Entry with persistent mode = true with memory (transient) based spaces, will not generate any errors or exceptions, but will not write these into any persistent store. The Entries will be transient. The following methods in the com.j_spaces.core.client.IMetaDataEntry and com.j_spaces.core.client.MetaDataEntry classes allows you to set the Entry persistent/transient mode:
The ExternalEntry provides the same methods to control transient Entries. |
Wiki Content Tree
Your Feedback Needed!
We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.
Add Comment