Package voldemort.store

Examples of voldemort.store.StoreTimeoutException


        // This should not happen unless there's a bug in the
        // getWithCustomTimeout
        long timeLeft = requestWrapper.getRoutingTimeoutInMs() - (endTime - startTime);
        if(timeLeft <= 0) {
            throw new StoreTimeoutException("PUT request timed out");
        }
        CompositeVersionedPutVoldemortRequest<K, V> putVersionedRequestObject = new CompositeVersionedPutVoldemortRequest<K, V>(requestWrapper.getKey(),
                                                                                                                                versioned,
                                                                                                                                timeLeft);
        putVersionedRequestObject.setRequestOriginTimeInMs(requestWrapper.getRequestOriginTimeInMs());
View Full Code Here


                            - (System.currentTimeMillis() - startTimeInMs);

            // This should not happen unless there's a bug in the
            // getWithCustomTimeout
            if(timeLeft < 0) {
                throw new StoreTimeoutException("DELETE request timed out");
            }

            // Update the version and the new timeout
            deleteRequestObject.setVersion(versioned.getVersion());
            deleteRequestObject.setRoutingTimeoutInMs(timeLeft);
View Full Code Here

        }
    }

    public T getResult() throws VoldemortException, IOException {
        if(isTimedOut)
            throw new StoreTimeoutException("Request timed out");

        if(!isComplete)
            throw new IllegalStateException("Client response not complete, cannot determine result");

        if(!isParsed)
View Full Code Here

        }

        @Override
        public void timeOut() {
            clientRequest.timeOut();
            invokeCallback(new StoreTimeoutException("ClientRequestExecutor timed out. Cannot complete request."),
                           (System.nanoTime() - startNs) / Time.NS_PER_MS);
            checkin(destination, clientRequestExecutor);
        }
View Full Code Here

TOP

Related Classes of voldemort.store.StoreTimeoutException

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.