/** * Flavor of keys that will not do repeatable read * @since 5.5 */ public Set testHookKeys() { checkReadiness(); checkForNoAccess(); return new EntriesSet(this, false, IteratorType.KEYS, false /* allowTombstones */); }
public Set entries(boolean recursive) { checkReadiness(); checkForNoAccess(); return basicEntries(recursive); }
/** * return a set of the keys in this region * @param allowTombstones whether destroyed entries should be included * @return the keys */ public Set keySet(boolean allowTombstones) { checkReadiness(); checkForNoAccess(); return new EntriesSet(this, false, IteratorType.KEYS, allowTombstones); }
public Collection values() { checkReadiness(); checkForNoAccess(); return new EntriesSet(this, false, IteratorType.VALUES, false); }
public Set keys() { checkReadiness(); checkForNoAccess(); return new EntriesSet(this, false, IteratorType.KEYS, false); }
public Set keys() { checkReadiness(); checkForNoAccess(); return new EntriesSet(this, false, IteratorType.KEYS, false); }
public Set entries(boolean recursive) { checkReadiness(); checkForNoAccess(); return basicEntries(recursive); }
/** * Flavor of keys that will not do repeatable read * @since 5.5 */ public Set testHookKeys() { checkReadiness(); checkForNoAccess(); return new EntriesSet(this, false, IteratorType.KEYS, false /* dontRememberReads */, false /* skipTxCheckInIteration */, false /* allowTombstones */); }
public Collection values() { checkReadiness(); checkForNoAccess(); return new EntriesSet(this, false, IteratorType.VALUES, false); }
/** * return a set of the keys in this region * @param allowTombstones whether destroyed entries should be included * @return the keys */ public Set keySet(boolean allowTombstones) { checkReadiness(); checkForNoAccess(); return new EntriesSet(this, false, IteratorType.KEYS, allowTombstones); }
public boolean containsKey(Object key, Object callbackArg) { checkReadiness(); checkForNoAccess(); return getDataView().containsKey(key, callbackArg, this); }
public boolean containsKeyOnServer(Object key) { checkReadiness(); checkForNoAccess(); ServerRegionProxy proxy = getServerProxy(); if (proxy != null) { return proxy.containsKey(key); } else { throw new UnsupportedOperationException(LocalizedStrings.LocalRegion_SERVER_KEYSET_REQUIRES_A_POOL.toLocalizedString()); } }
public boolean containsKeyOnServer(Object key) { checkReadiness(); checkForNoAccess(); ServerRegionProxy proxy = getServerProxy(); if (proxy != null) { return proxy.containsKey(key); } else { throw new UnsupportedOperationException(LocalizedStrings.LocalRegion_SERVER_KEYSET_REQUIRES_A_POOL.toLocalizedString()); } }
public boolean containsKey(Object key) { checkReadiness(); checkForNoAccess(); return getDataView().containsKey(getKeyInfo(key), this); }
public Region.Entry getEntry(Object key, final TXStateInterface tx) { validateKey(key); checkReadiness(); checkForNoAccess(); return getDataView(tx).getEntry(key, null, this, false); }
public Region.Entry getEntry(Object key) { validateKey(key); checkReadiness(); checkForNoAccess(); discoverJTA(); return getDataView().getEntry(getKeyInfo(key), this, false); }
public void localInvalidateRegion(Object aCallbackArgument) { getDataView().checkSupportsRegionInvalidate(); checkReadiness(); checkForNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_LOCAL_INVALIDATE, aCallbackArgument, false, getMyId()); basicInvalidateRegion(event); }
public boolean containsTombstone(Object key) { checkReadiness(); checkForNoAccess(); if (!this.concurrencyChecksEnabled) { return false; } else { try { Entry entry = getDataView().getEntry(getKeyInfo(key), this, true); if (entry == null) { return false; } else { return (entry.getValue() == Token.TOMBSTONE); } } catch (EntryDestroyedException e) { return true; } } }
public void localInvalidateRegion(Object aCallbackArgument) { getDataView().checkSupportsRegionInvalidate(); checkReadiness(); checkForNoAccess(); RegionEventImpl event = new RegionEventImpl(this, Operation.REGION_LOCAL_INVALIDATE, aCallbackArgument, false, getMyId()); basicInvalidateRegion(event); }
/** * Just like getEntry but also updates the stats that get would have depending * on a flag. See bug 42410. Also skips discovering JTA * * @param key * @return the entry if it exists; otherwise null. */ public Entry accessEntry(Object key, boolean updateStats) { validateKey(key); checkReadiness(); checkForNoAccess(); if(updateStats) { return getDataView().accessEntry(getKeyInfo(key), this); } else { return getDataView().getEntry(getKeyInfo(key), this, false); } }