Package com.gigaspaces.datasource
Interface DataPersister<T>
- All Superinterfaces:
DataProvider<T>,ManagedDataSource<T>
- All Known Subinterfaces:
ExternalDataSource<T>
- All Known Implementing Classes:
DataStorage
Deprecated.
DataPersister is responsible for the persistency of the space data in external data source.
This interface should be implemented for non-transactional single operations applications.
Single operations - write,update and remove are used for objects with UID.
For batch operations and transactions use the
This interface should be implemented for non-transactional single operations applications.
Single operations - write,update and remove are used for objects with UID.
For batch operations and transactions use the
BulkDataPersister.- Since:
- 6.0
- Author:
- anna
-
Field Summary
Fields inherited from interface com.gigaspaces.datasource.ManagedDataSource
NUMBER_OF_PARTITIONS, STATIC_PARTITION_NUMBER -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Remove the given object from the data storevoidDeprecated.Update the given object in the data storevoidDeprecated.Write given new object to the data storevoidwriteBatch(List<T> objects) Deprecated.for batch operations useBulkDataPersisterMethods inherited from interface com.gigaspaces.datasource.DataProvider
iterator, readMethods inherited from interface com.gigaspaces.datasource.ManagedDataSource
init, initialLoad, shutdown
-
Method Details
-
write
Deprecated.Write given new object to the data store- Throws:
DataSourceException
-
update
Deprecated.Update the given object in the data store- Throws:
DataSourceException
-
remove
Deprecated.Remove the given object from the data store- Throws:
DataSourceException
-
writeBatch
Deprecated.for batch operations useBulkDataPersisterWrite given new objects to the data store.
If the implementation uses transactions,
all the objects must be written in one transaction.- Throws:
DataSourceException
-
SpaceSynchronizationEndpointinstead.