Package org.commoncrawl.async.Callbacks

Examples of org.commoncrawl.async.Callbacks.Callback


    _maxConcurrentQueries = getConfiguration().getInt(SLAVE_MAX_CONCURRENT_QUERIES_PARAM, SLAVE_MAX_CONCURRENT_QUERIES_DEFAULT);
   
    // terminate all active queries ...
    terminateAndFlushAllQueries(
       
        new Callback() {

          @Override
          public void execute() {

            // we are still in the async thread here ... all existing queries have been cancelled at this point ...
View Full Code Here


  public void renderQueueStats(final JsonWriter jsonWriter)throws IOException {
    EventLoop eventLoop = getHost().getEventLoop();
    final AtomicReference<IOException> exceptionRef = new AtomicReference<IOException>();
    if (Thread.currentThread() != eventLoop.getEventThread()) {
      final Semaphore semaphore = new Semaphore(0);
      eventLoop.queueAsyncCallback(new Callback() {

        @Override
        public void execute() {
          try {
            renderQueueStatsInternal(jsonWriter);
View Full Code Here

TOP

Related Classes of org.commoncrawl.async.Callbacks.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.