IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.jpa
Interface ClientLoadCallback


public interface ClientLoadCallback

A ClientLoadCallback instance receives notifications when a ClientLoader starts and finishes.

Clients should implement this interface and pass it to the ClientLoader.load() method to be notified when the client loader has started or completed loading the specified maps.

Since:
WAS XD 6.1.0.3
See Also:
ClientLoader

Method Summary
 void postFinish(Session session, String mapName, boolean success)
          This method is called right after the client finishes loading a map.
 void preStart(Session session, String mapName)
          This method is called before the client starts loading a map.
 

Method Detail

preStart

void preStart(Session session,
              String mapName)
This method is called before the client starts loading a map.

Parameters:
session - the session object used to preload the map
mapName - the name of the map is being preloaded

postFinish

void postFinish(Session session,
                String mapName,
                boolean success)
This method is called right after the client finishes loading a map.

The application could do some clean up work after the the client finishes loading the map. For example, in the entity map case, the application could run a query to clean up all the orphaned entities.

Parameters:
session - the session object used to preload the map
mapName - the name of the map is being preloaded
success - indicates whether the preload is successful or not

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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