Package com.foundationdb.server.service.transaction.TransactionService

Examples of com.foundationdb.server.service.transaction.TransactionService.Callback


            } finally {
                if(cursor != null && !cursor.isClosed()) {
                    cursor.close();
                }
            }
            transactionService.addCallback(session, CallbackType.COMMIT, new Callback() {
                @Override
                public void run(Session session, long timestamp) {
                    try {
                        indexInfo.commitIndexer();
                    } catch(IOException e) {
View Full Code Here


        this.taskQueue = new DelayQueue<>();
        this.queueConsumer = new Thread(new QueueConsumer(this.taskQueue), "PSSM_QUEUE");
        this.queueConsumer.start();

        this.clearLatestCacheCallback = new Callback() {
            @Override
            public void run(Session session, long timestamp) {
                updateLatestAISCache(CACHE_SENTINEL);
            }
        };
        this.enqueueClearAndUpdateCallback = new Callback() {
            @Override
            public void run(Session session, long timestamp) {
                taskQueue.add(new UpdateLatestCacheTask(0));
                taskQueue.add(new ClearAISMapTask(0, 10000));
            }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.service.transaction.TransactionService.Callback

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.