예제 #1
0
 @Override
 public void run() throws Exception {
   begin = Clock.currentTimeMillis();
   MultiMapContainer container = getOrCreateContainer();
   MultiMapValue multiMapValue = container.getOrCreateMultiMapValue(dataKey);
   response = true;
   if (multiMapValue.containsRecordId(recordId)) {
     response = false;
     return;
   }
   Collection<MultiMapRecord> coll = multiMapValue.getCollection(false);
   MultiMapRecord record = new MultiMapRecord(recordId, isBinary() ? value : toObject(value));
   coll.add(record);
 }