* Blocks for the elements specified through {@link #expect(Class[])} invocations to be replicated in this cache.
* if replication does not occur in the give timeout then an exception is being thrown.
*/
public void waitForReplicationToOccur(long timeoutMillis)
{
CacheStatus state = ((CacheSPI) cache).getComponentRegistry().getState();
if (!state.equals(CacheStatus.STARTED))
{
throw new IllegalStateException("Cannot invoke on an cache that is not started: current cache status is " + state);
}
// log("enter... ReplicationListener.waitForReplicationToOccur");
waitForReplicationToOccur(timeoutMillis, TimeUnit.MILLISECONDS);