@Override public Map getAll(Collection keys, Object callback) { if (keys == null) { throw new NullPointerException("The collection of keys for getAll cannot be null"); } checkReadiness(); checkForLimitedOrNoAccess(); return keys.isEmpty()? new HashMap(): basicGetAll(keys, callback); }
public Map getAll(Collection keys) { if (keys == null) { throw new NullPointerException("The collection of keys for getAll cannot be null"); } checkReadiness(); checkForLimitedOrNoAccess(); return keys.isEmpty()? new HashMap(): basicGetAll(keys); }
public void becomeLockGrantor() { checkReadiness(); checkForLimitedOrNoAccess(); if (this.scope != Scope.GLOBAL) { throw new IllegalStateException(LocalizedStrings.AbstractRegion_CANNOT_SET_LOCK_GRANTOR_WHEN_SCOPE_IS_NOT_GLOBAL.toLocalizedString()); } if (isCurrentlyLockGrantor()) return; // nothing to do... already lock grantor this.isLockGrantor = true; }
public void becomeLockGrantor() { checkReadiness(); checkForLimitedOrNoAccess(); if (this.scope != Scope.GLOBAL) { throw new IllegalStateException(LocalizedStrings.AbstractRegion_CANNOT_SET_LOCK_GRANTOR_WHEN_SCOPE_IS_NOT_GLOBAL.toLocalizedString()); } if (isCurrentlyLockGrantor()) return; // nothing to do... already lock grantor this.isLockGrantor = true; }
public void clear() { checkReadiness(); checkForLimitedOrNoAccess(); RegionEventImpl regionEvent = new RegionEventImpl(this, Operation.REGION_CLEAR, null, false, getMyId(),generateEventID()); basicClear(regionEvent); }
public void clear() { checkReadiness(); checkForLimitedOrNoAccess(); RegionEventImpl regionEvent = new RegionEventImpl(this, Operation.REGION_CLEAR, null, false, getMyId(),generateEventID()); basicClear(regionEvent); }