IBM WebSphereTM eXtreme Scale, Release 8.5
API Specification

com.ibm.websphere.objectgrid.plugins
Interface ReplicationMapListener


public interface ReplicationMapListener

This interface is used to create an implementation of an event listener for client-side maps that are in replication mode. Registered listeners receive notification callbacks for replication start and exit events and data changes.

Listener instances can be registered with a map using the ClientReplicableMap.enableClientReplication(com.ibm.websphere.objectgrid.ClientReplicableMap.Mode, int[], ReplicationMapListener) method.

Since:
WAS XD 6.1, XC10

Method Summary
 void onData(LogSequence logSequence)
          This method is invoked when a data change is replicated to the client replication map.
 void replicationExits()
          This method is invoked when replication has been disabled for this map.
 void replicationStarts()
          This method is invoked when a snapshot mode replica has been synchronized with the client or a continuous replica has started replicating.
 

Method Detail

replicationStarts

void replicationStarts()
This method is invoked when a snapshot mode replica has been synchronized with the client or a continuous replica has started replicating.

See also: ClientReplicableMap.enableClientReplication(com.ibm.websphere.objectgrid.ClientReplicableMap.Mode, int[], ReplicationMapListener)


onData

void onData(LogSequence logSequence)
This method is invoked when a data change is replicated to the client replication map.

Parameters:
logSequence - the log sequence containing all of the data changes.

replicationExits

void replicationExits()
This method is invoked when replication has been disabled for this map.

See Also:
ClientReplicableMap.disableClientReplication()

IBM WebSphereTM eXtreme Scale, Release 8.5
API Specification

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