GigaSpaces XAP 9.7.2 API

org.openspaces.persistency.patterns
Class BulkDataPersisterExceptionHandler

java.lang.Object
  extended by org.openspaces.persistency.patterns.AbstractManagedDataSourceDelegator
      extended by org.openspaces.persistency.patterns.BulkDataPersisterExceptionHandler
All Implemented Interfaces:
BulkDataPersister, ManagedDataSource
Direct Known Subclasses:
SQLDataProviderExceptionHandler

Deprecated. since 9.5 - use SpaceSynchronizationEndpointExceptionHandler instead.

@Deprecated
public class BulkDataPersisterExceptionHandler
extends AbstractManagedDataSourceDelegator
implements BulkDataPersister

An exception handler that delegates BulkDataPersister execution and calls the provided ExceptionHandler in case of exceptions.

Author:
kimchy

Field Summary
protected  ExceptionHandler exceptionHandler
          Deprecated.  
 
Fields inherited from class org.openspaces.persistency.patterns.AbstractManagedDataSourceDelegator
dataSource
 
Fields inherited from interface com.gigaspaces.datasource.ManagedDataSource
DATA_CLASS_PROPS, NUMBER_OF_PARTITIONS, STATIC_PARTITION_NUMBER
 
Constructor Summary
BulkDataPersisterExceptionHandler(ManagedDataSource dataSource, ExceptionHandler exceptionHandler)
          Deprecated.  
 
Method Summary
 void executeBulk(List<BulkItem> bulkItems)
          Deprecated. Execute given bulk of operations.
 
Methods inherited from class org.openspaces.persistency.patterns.AbstractManagedDataSourceDelegator
init, initialLoad, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exceptionHandler

protected final ExceptionHandler exceptionHandler
Deprecated. 
Constructor Detail

BulkDataPersisterExceptionHandler

public BulkDataPersisterExceptionHandler(ManagedDataSource dataSource,
                                         ExceptionHandler exceptionHandler)
Deprecated. 
Method Detail

executeBulk

public void executeBulk(List<BulkItem> bulkItems)
                 throws DataSourceException
Deprecated. 
Description copied from interface: BulkDataPersister
Execute given bulk of operations.
Each BulkItem contains one of the following operation -

WRITE - given object should be inserted to the data store,
UPDATE - given object should be updated in the data store,
REMOVE - given object should be deleted from the data store

If the implementation uses transactions,
all the bulk operations must be executed in one transaction.

Specified by:
executeBulk in interface BulkDataPersister
Parameters:
bulkItems - list of data object and the operation to apply on that object
Throws:
DataSourceException - when the data store fails to persist the given list of objects

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.