/** return true if a CacheWriter was actually invoked */ boolean doNetWrite(CacheEvent event, Set netWriteRecipients, CacheWriter localWriter, int paction) throws CacheWriterException, TimeoutException { int action = paction; this.requestInProgress = true; Scope scope = this.region.scope; if (localWriter != null) { doLocalWrite(localWriter, event, action); this.requestInProgress = false; return true; } if (scope == Scope.LOCAL && (region.getPartitionAttributes() == null)) { return false; } CacheEvent listenerEvent = getEventForListener(event); if (action == BEFOREUPDATE && listenerEvent.getOperation().isCreate()) { action = BEFORECREATE; } boolean cacheWrote = netWrite(getEventForListener(event), action, netWriteRecipients); this.requestInProgress = false; return cacheWrote; }
/** return true if a CacheWriter was actually invoked */ boolean doNetWrite(CacheEvent event, Set netWriteRecipients, CacheWriter localWriter, int paction) throws CacheWriterException, TimeoutException { int action = paction; this.requestInProgress = true; Scope scope = this.region.scope; if (localWriter != null) { doLocalWrite(localWriter, event, action); this.requestInProgress = false; return true; } if (scope == Scope.LOCAL && (region.getPartitionAttributes() == null)) { return false; } CacheEvent listenerEvent = getEventForListener(event); if (action == BEFOREUPDATE && listenerEvent.getOperation().isCreate()) { action = BEFORECREATE; } boolean cacheWrote = netWrite(getEventForListener(event), action, netWriteRecipients); this.requestInProgress = false; return cacheWrote; }
CacheEvent event = getEventForListener(pevent);
CacheEvent event = getEventForListener(pevent);