/** * Returns whether this action is distributed. * * @return true if this is INVALIDATE or DESTROY */ public boolean isDistributed() { return !isLocal(); }
&& getScope().isDistributed()) { if (getEvictionAttributes().getAction().isLocalDestroy() || getEntryIdleTimeout().getAction().isLocal() || getEntryTimeToLive().getAction().isLocal() || getRegionIdleTimeout().getAction().isLocalInvalidate() || getRegionTimeToLive().getAction().isLocalInvalidate()) {
if (!attrs.isForBucketRegion()) { if (attrs.getEvictionAttributes().getAction().isLocalDestroy() || attrs.getEntryIdleTimeout().getAction().isLocal() || attrs.getEntryTimeToLive().getAction().isLocal() || attrs.getRegionIdleTimeout().getAction().isLocalInvalidate() || attrs.getRegionTimeToLive().getAction().isLocalInvalidate()) {
@Override protected boolean isIdleExpiredOnOthers() throws EntryNotFoundException { if (getIdleAttributes().getTimeout() <= 0L) { // idle expiration is not being used return true; } if (getIdleAttributes().getAction().isLocal()) { // no need to consult with others if using a local action return true; } if (SystemPropertyHelper.restoreIdleExpirationBehavior()) { return true; } long latestLastAccessTime = getLatestLastAccessTimeOnOtherMembers(); if (latestLastAccessTime > getLastAccessedTime()) { setLastAccessedTime(latestLastAccessTime); return false; } return true; }