Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.QueryTimedOutException


            @Override
            public void run() {
                writeRows(row);
                if(failures[0] < 1) {
                    ++failures[0];
                    throw new QueryTimedOutException(-1);
                }
            }
        });
        expectRows(tid, row);
    }
View Full Code Here


            @Override
            public void run() {
                writeRows(row);
                if(failures[0] < 2) {
                    ++failures[0];
                    throw new QueryTimedOutException(-1);
                }
            }
        });
        expectRows(tid, row);
    }
View Full Code Here

            public Row call() {
                Row row = row(tid, 1);
                writeRows(row);
                if(failures[0] < 1) {
                    ++failures[0];
                    throw new QueryTimedOutException(-1);
                }
                return row;
            }
        });
        expectRows(tid, row);
View Full Code Here

            public Row call() {
                Row row = row(tid, 1);
                writeRows(row);
                if(failures[0] < 2) {
                    ++failures[0];
                    throw new QueryTimedOutException(-1);
                }
                return row;
            }
        });
        expectRows(tid, row);
View Full Code Here

        @Override
        protected void retryHook(Session session, int i, int maxRetries,
                                 Exception retryException) {
            if ((i < maxRetries) && ((counter.incrementAndGet() % FAILURE_RATE) == 0)) {
                // An isRollbackClass exception not associated with any particular store.
                throw new QueryTimedOutException(0);
            }
            super.retryHook(session, i, maxRetries, retryException);
        }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.QueryTimedOutException

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.