public final DistributedPutAllOperation newPutAllOperation(Map<?, ?> map, Object callbackArg) { if (map == null) { throw new NullPointerException(LocalizedStrings .AbstractRegion_MAP_CANNOT_BE_NULL.toLocalizedString()); } if (map.isEmpty()) { return null; } checkReadiness(); checkForLimitedOrNoAccess(); discoverJTA(); // Create a dummy event for the PutAll operation. Always create a // PutAll operation, even if there is no distribution, so that individual // events can be tracked and handed off to callbacks in postPutAll final EntryEventImpl event = EntryEventImpl.create(this, Operation.PUTALL_CREATE, null, null, callbackArg, true, getMyId()); event.disallowOffHeapValues(); DistributedPutAllOperation dpao = new DistributedPutAllOperation(event, map.size(), false); return dpao; } public final DistributedPutAllOperation newPutAllForPUTDmlOperation(Map<?, ?> map, Object callbackArg) {
public final DistributedPutAllOperation newPutAllOperation(Map<?, ?> map) { if (map == null) { throw new NullPointerException(LocalizedStrings .AbstractRegion_MAP_CANNOT_BE_NULL.toLocalizedString()); } if (map.isEmpty()) { return null; } checkReadiness(); checkForLimitedOrNoAccess(); final TXStateInterface tx = discoverJTA(); // Create a dummy event for the PutAll operation. Always create a // PutAll operation, even if there is no distribution, so that individual // events can be tracked and handed off to callbacks in postPutAll final EntryEventImpl event = EntryEventImpl.create(this, Operation.PUTALL_CREATE, null, null, null, true, getMyId()); event.disallowOffHeapValues(); event.setTXState(tx); return new DistributedPutAllOperation(this, event, map.size(), false); }
putallOp.putAllData[i].getValue()); event.setEventId(putallOp.putAllData[i].getEventID()); putAllForBucket = new DistributedPutAllOperation( event, putallOp.putAllDataSize, putallOp.isBridgeOp); bucketToPutallMap.put(bucketId, putAllForBucket);
public VersionedObjectList basicImportPutAll(Map map, boolean skipCallbacks) { long startPut = CachePerfStats.getStatTime(); // generateCallbacks == false EntryEventImpl event = EntryEventImpl.create(this, Operation.PUTALL_CREATE, null, null, null, true, getMyId(), !skipCallbacks); DistributedPutAllOperation putAllOp = new DistributedPutAllOperation(this, event, map.size(), false); try { VersionedObjectList result = basicPutAll(map, putAllOp, null); getCachePerfStats().endPutAll(startPut); return result; } finally { putAllOp.freeOffHeapResources(); } }
public VersionedObjectList basicImportPutAll(Map map, boolean skipCallbacks) { long startPut = CachePerfStats.getStatTime(); // generateCallbacks == false EntryEventImpl event = EntryEventImpl.create(this, Operation.PUTALL_CREATE, null, null, null, true, getMyId(), !skipCallbacks); try { DistributedPutAllOperation putAllOp = new DistributedPutAllOperation(event, map.size(), false); try { VersionedObjectList result = basicPutAll(map, putAllOp, null); getCachePerfStats().endPutAll(startPut); return result; } finally { putAllOp.freeOffHeapResources(); } } finally { event.release(); } }
null, null, null, true, this.getDistributedMember(), true, true); this.putAllOp = new DistributedPutAllOperation(e, putAllSize, false /*[DISTTX] TODO*/); this.putAllOp.setPutAllEntryData(putAllEntries);
try { event.setContext(memberId); DistributedPutAllOperation putAllOp = new DistributedPutAllOperation(event, map.size(), true); try {
try { event.setContext(memberId); DistributedPutAllOperation putAllOp = new DistributedPutAllOperation(this, event, map.size(), true); try {
eventSender, baseEvent, this); final DistributedPutAllOperation dpao = new DistributedPutAllOperation(baseEvent, putAllDataCount, false); try { final VersionedObjectList versions = new VersionedObjectList(putAllDataCount, true, dr.concurrencyChecksEnabled);
eventSender, baseEvent, this); dpao = new DistributedPutAllOperation(baseEvent, putAllPRDataSize, false);
? new DistributedPutAllOperation(r, baseEvent, putAllDataCount, false) : putAllOp; try {
dpao = new DistributedPutAllOperation(r, baseEvent, putAllPRDataSize, false, this.putAllPRData);