IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins.index
Interface DynamicIndexCallback


public interface DynamicIndexCallback

This interface provides a callback mechanism for dynamic indexing process. If applications wish to get notification when a dynamic index is ready, in error, or destroyed, this callback interface can be implemented and registered with the dynamic indexing process when creating a dynamic index.

Since:
WAS XD 6.0.1
See Also:
BackingMap.createDynamicIndex(MapIndexPlugin, DynamicIndexCallback), BackingMap.createDynamicIndex(String, boolean, String, DynamicIndexCallback)

Method Summary
 void destroy(String indexName)
          Invoked when the dynamic index is removed or the BackingMap is destroyed.
 void error(String indexName, Throwable t)
          Invoked when the dynamic indexing process encounters an unexpected error.
 void ready(String indexName)
          Invoked when the dynamic index is ready.
 

Method Detail

ready

void ready(String indexName)
Invoked when the dynamic index is ready.

Parameters:
indexName - the index name

error

void error(String indexName,
           Throwable t)
Invoked when the dynamic indexing process encounters an unexpected error.

Parameters:
indexName - the index name
t - a Throwable object that caused the error situation in dynamic indexing processing.

destroy

void destroy(String indexName)
Invoked when the dynamic index is removed or the BackingMap is destroyed.

Parameters:
indexName - the index name
See Also:
BackingMap.removeDynamicIndex(String), ObjectGrid.destroy()

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.