Examples of evict()


Examples of com.hazelcast.core.IMap.evict()

    private List<Runnable> loadMapOperations() {
        ArrayList<Runnable> operations = new ArrayList<Runnable>();
        addOperation(operations, new Runnable() {
            public void run() {
                IMap map = hazelcast.getMap("myMap");
                map.evict(random.nextInt(SIZE));
            }
        }, 5);
        addOperation(operations, new Runnable() {
            public void run() {
                IMap map = hazelcast.getMap("myMap");
View Full Code Here

Examples of com.hazelcast.map.RecordStore.evict()

            shouldBackup = false;
        }

        for (Data key : keys) {
            if (!recordStore.isLocked(key)) {
                recordStore.evict(key);
            }
        }
    }

    public boolean shouldBackup() {
View Full Code Here

Examples of com.hazelcast.replicatedmap.impl.record.ReplicatedRecordStore.evict()

            for (ScheduledEntry<Object, Object> entry : entries) {
                Object key = entry.getKey();
                if (entry.getValue() == null) {
                    replicatedRecordStore.removeTombstone(key);
                } else {
                    replicatedRecordStore.evict(key);
                }
            }
        }
    }
View Full Code Here

Examples of com.impetus.kundera.cache.Cache.evict()

        {
            LOG.debug("Removing from L2 >> " + key);
            Cache c = (Cache) getL2Cache();
            if (c != null)
            {
                c.evict(entityClass, key);
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.liferay.portal.kernel.dao.orm.Session.evict()

      if (wallEntry.isCachedModel() || BatchSessionUtil.isEnabled()) {
        Object staleObject = session.get(WallEntryImpl.class,
            wallEntry.getPrimaryKeyObj());

        if (staleObject != null) {
          session.evict(staleObject);
        }
      }

      session.delete(wallEntry);
View Full Code Here

Examples of com.liferay.portal.kernel.dao.orm.Session.evict()

      if (meetupsEntry.isCachedModel() || BatchSessionUtil.isEnabled()) {
        Object staleObject = session.get(MeetupsEntryImpl.class,
            meetupsEntry.getPrimaryKeyObj());

        if (staleObject != null) {
          session.evict(staleObject);
        }
      }

      session.delete(meetupsEntry);
View Full Code Here

Examples of com.liferay.portal.kernel.dao.orm.Session.evict()

          BatchSessionUtil.isEnabled()) {
        Object staleObject = session.get(MeetupsRegistrationImpl.class,
            meetupsRegistration.getPrimaryKeyObj());

        if (staleObject != null) {
          session.evict(staleObject);
        }
      }

      session.delete(meetupsRegistration);
View Full Code Here

Examples of com.sleepycat.je.dbi.CursorImpl.evict()

            assert bin == cursorImpl.getBIN();
            assert duplicates ?
                (bin.getTarget(i) == null) :
                (bin.getTarget(i) != null);
            if (!duplicates) {
                cursorImpl.evict();
            }
            status = cursor.getNext(keyEntry, dataEntry, null);
        }
        assert status == OperationStatus.NOTFOUND;
        cursor.close();
View Full Code Here

Examples of com.sleepycat.je.dbi.CursorImpl.evict()

                        if (offsets != null) {
                            list.add(offsets.toArray());
                        }

                        /* Always evict after using a file summary LN. */
                        cursor.evict();
                    }

                    status = cursor.getNext
                        (keyEntry, dataEntry, LockType.NONE, true /*forward*/,
                         false /*alreadyLatched*/, null /*rangeConstraint*/);
 
View Full Code Here

Examples of com.sleepycat.je.dbi.CursorImpl.evict()

                        if (isOldVersion && !env.isReadOnly()) {
                            insertFileSummary(ln, fileNum, 0);
                            cursor.delete(ReplicationContext.NO_REPLICATE);
                        } else {
                            /* Always evict after using a file summary LN. */
                            cursor.evict();
                        }
                    } else {

                        /*
                         * File does not exist, remove the summary from the map
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.