Package org.jboss.cache

Examples of org.jboss.cache.TreeCache.createService()


        TreeCache cache = new TreeCache("name", getDefaultProperties(), 5000L);

        cache.setCacheMode(TreeCache.REPL_SYNC);
        cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache.createService();
        cache.startService();


        return cache;
    }
View Full Code Here


        TreeCache cache = new TreeCache("name", getDefaultProperties(), 5000L);

        cache.setCacheMode(TreeCache.LOCAL);
        cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache.createService();
        cache.startService();


        return cache;
    }
View Full Code Here

            cache.setSyncCommitPhase(true);
            cache.setSyncRollbackPhase(true);
        }
        cache.setNodeLockingScheme("OPTIMISTIC");
        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache.createService();
        cache.startService();

        return cache;
    }
View Full Code Here

        cache.setSyncRollbackPhase(true);
        cache.setNodeLockingScheme("OPTIMISTIC");
        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
        cache.setCacheLoaderConfiguration(getCacheLoaderConfig(shared, shared ? getTempDir(name + "-shared") : getTempDir(name + instanceNumber++), false));

        cache.createService();
        cache.startService();
        return cache;
    }

    protected Random random;
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.