|
GigaSpaces XAP 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataPersister<T>
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 BulkDataPersister.
| Field Summary |
|---|
| Fields inherited from interface com.gigaspaces.datasource.ManagedDataSource |
|---|
DATA_CLASS_PROPS, NUMBER_OF_PARTITIONS, STATIC_PARTITION_NUMBER |
| Method Summary | |
|---|---|
void |
remove(T object)
Remove the given object from the data store |
void |
update(T object)
Update the given object in the data store |
void |
write(T object)
Write given new object to the data store |
void |
writeBatch(List<T> objects)
Deprecated. for batch operations use BulkDataPersister |
| Methods inherited from interface com.gigaspaces.datasource.DataProvider |
|---|
iterator, read |
| Methods inherited from interface com.gigaspaces.datasource.ManagedDataSource |
|---|
init, initialLoad, shutdown |
| Method Detail |
|---|
void write(T object)
throws DataSourceException
object -
DataSourceException
void update(T object)
throws DataSourceException
object -
DataSourceException
void remove(T object)
throws DataSourceException
object -
DataSourceException
@Deprecated
void writeBatch(List<T> objects)
throws DataSourceException
BulkDataPersister
objects -
DataSourceException
|
GigaSpaces XAP 7.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||