public boolean createLocally(final BucketRegion bucketRegion,final EntryEventImpl event,boolean ifNew,boolean ifOld,boolean requireOldValue,final long lastModified) throws ForceReattemptException {
  boolean result=false;
  try {
    event.setRegion(bucketRegion);
    if (event.isOriginRemote()) {
      result=bucketRegion.basicUpdate(event,ifNew,ifOld,lastModified,true);
    }
 else {
      result=bucketRegion.virtualPut(event,ifNew,ifOld,null,requireOldValue,lastModified,false);
    }
    bucketRegion.checkReadiness();
  }
 catch (  RegionDestroyedException rde) {
    checkRegionDestroyedOnBucket(bucketRegion,event.isOriginRemote(),rde);
  }
  return result;
}

public boolean createLocally ( final BucketRegion bucketRegion , final EntryEventImpl event , boolean ifNew , boolean ifOld , boolean requireOldValue , final long lastModified ) throws ForceReattemptException { boolean result = false ; try { event . setRegion ( bucketRegion ) ; if ( event . isOriginRemote ( ) ) { result = bucketRegion . basicUpdate ( event , ifNew , ifOld , lastModified , true ) ; } else { result = bucketRegion . virtualPut ( event , ifNew , ifOld , null , requireOldValue , lastModified , false ) ; } bucketRegion . checkReadiness ( ) ; } catch ( RegionDestroyedException rde ) { checkRegionDestroyedOnBucket ( bucketRegion , event . isOriginRemote ( ) , rde ) ; } return result ; }
creates the entry with the given key locally . < br > steps : < br > 1 ) it finds out the bucket region for the bucket id . < br > 2 ) if from step 1 it gets null , that means the bucket is remapped . < br > 3 ) if it finds the bucket region from step 1 , it tries to creates the entry on the region . < br > 4 ) if entry already exists , for the key , step 3 would throw entryexistsexception or else it will create an entry < br > 5 ) updatebucket2size if bucket is on more than 1 node or else bucket listners would take care of size update . < br >
