GigaSpaces XAP 9.7.2 API

com.gigaspaces.datasource
Interface DataPersister<T>

All Superinterfaces:
DataProvider<T>, ManagedDataSource<T>
All Known Subinterfaces:
ExternalDataSource<T>

Deprecated. since 9.5 - use SpaceSynchronizationEndpoint instead.

@Deprecated
public interface DataPersister<T>
extends DataProvider<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.

Since:
6.0
Author:
anna

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)
          Deprecated. Remove the given object from the data store
 void update(T object)
          Deprecated. Update the given object in the data store
 void write(T object)
          Deprecated. 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

write

void write(T object)
           throws DataSourceException
Deprecated. 
Write given new object to the data store

Parameters:
object -
Throws:
DataSourceException

update

void update(T object)
            throws DataSourceException
Deprecated. 
Update the given object in the data store

Parameters:
object -
Throws:
DataSourceException

remove

void remove(T object)
            throws DataSourceException
Deprecated. 
Remove the given object from the data store

Parameters:
object -
Throws:
DataSourceException

writeBatch

@Deprecated
void writeBatch(List<T> objects)
                throws DataSourceException
Deprecated. for batch operations use BulkDataPersister

Write given new objects to the data store.

If the implementation uses transactions,
all the objects must be written in one transaction.

Parameters:
objects -
Throws:
DataSourceException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.