@Override public boolean isDestroyed() { if (this.entryIsDestroyed) { return true; } checkTX(); try { if (!this.myTX.containsKey(this.keyInfo, this.localRegion)) { this.entryIsDestroyed = true; } } catch (RegionDestroyedException ex) { this.entryIsDestroyed = true; } catch (CancelException ex) { this.entryIsDestroyed = true; } return this.entryIsDestroyed; }
@Override public Object setUserAttribute(Object value) { checkTX(); throwIfUAOperationForPR(); TXEntryUserAttrState tx = txWriteUA(this.keyInfo); if (tx != null) { return tx.setPendingValue(value); } else { checkEntryDestroyed(); if (this.localRegion.entryUserAttributes == null) { this.localRegion.entryUserAttributes = new Hashtable(); } return this.localRegion.entryUserAttributes.put(keyInfo, value); } }
checkTX(); if (!this.localRegion.statisticsEnabled) { throw new StatisticsDisabledException(
@Unretained public Object getValue(boolean createIfAbsent) { checkTX(); // Object value = this.localRegion.getDeserialized(this.key, false, this.myTX, // this.rememberReads); @Unretained Object value = this.myTX.getDeserializedValue(keyInfo, this.localRegion, false, false, false, null, false, false, createIfAbsent); if (value == null) { throw new EntryDestroyedException(this.keyInfo.getKey().toString()); } else if (Token.isInvalid(value)) { return null; } return value; }
@Override public Object getUserAttribute() { checkTX(); throwIfUAOperationForPR(); TXEntryUserAttrState tx = txReadUA(this.keyInfo); if (tx != null) { return tx.getPendingValue(); } else { checkEntryDestroyed(); return this.localRegion.basicGetEntryUserAttribute(this.keyInfo.getKey()); } }