Package org.elasticsearch.common.util.concurrent

Examples of org.elasticsearch.common.util.concurrent.EsRejectedExecutionException


                any(BulkShardRequest.class),
                bulkShardResponseListener.capture());

        final ActionListener<BulkShardResponse> listener = bulkShardResponseListener.getValue();

        listener.onFailure(new EsRejectedExecutionException());
        // wait, failure retry lock is done in decoupled thread
        Thread.sleep(1);

        final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(2);
        final AtomicBoolean hadBlocked = new AtomicBoolean(false);
View Full Code Here


    /**
     * called when the task was rejected because the local node is no longer master
     */
    public void onNoLongerMaster(String source) {
        onFailure(source, new EsRejectedExecutionException("no longer master. source: [" + source + "]"));
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.util.concurrent.EsRejectedExecutionException

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.