Package co.paralleluniverse.galaxy

Examples of co.paralleluniverse.galaxy.AbstractCacheListener


        final StoreTransaction txn = store.beginTransaction();
        try {
            root = store.getRoot(rootName, txn);

            store.setListener(root, new AbstractCacheListener() {
                @Override
                public void evicted(Cache cache, long id) {
                    invalidated(cache, id);
                }
View Full Code Here


        }
    }

    private ActorRef<?> updateCache(final String rootName, long root, ActorRef<?> actor) {
        final Store store = grid.store();
        store.setListener(root, new AbstractCacheListener() {
            @Override
            public void invalidated(Cache cache, long id) {
                evicted(cache, id);
            }
View Full Code Here

     * A cache listener is able to set a line listener.
     */
    @Test
    public void testSetLineListenerInCacheListener() throws Exception {
        final CacheListener lineListener = mock(CacheListener.class);
        cache.addCacheListener(new AbstractCacheListener() {
            @Override
            public void received(co.paralleluniverse.galaxy.Cache cache, long id, long version, ByteBuffer data) {
                try {
                    doOp(LSTN, id, lineListener);
                } catch (TimeoutException e) {
View Full Code Here

TOP

Related Classes of co.paralleluniverse.galaxy.AbstractCacheListener

Copyright © 2018 www.massapicom. 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.