Examples of GCAction


Examples of org.apache.blur.utils.GCAction

  private Set<AtomicBoolean> _stops = Collections.synchronizedSet(new HashSet<AtomicBoolean>());

  public DefaultBlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec) {
    super(warmupBandwidthThrottleBytesPerSec);
    GCWatcher.registerAction(new GCAction() {
      @Override
      public void takeAction() throws Exception {
        synchronized (_stops) {
          for (AtomicBoolean stop : _stops) {
            stop.set(true);
View Full Code Here

Examples of org.apache.blur.utils.GCAction

        } catch (Throwable e) {
          LOG.error("Unknown error while trying to cleanup finished queries.", e);
        }
      }
    }, statusCleanupTimerDelay, statusCleanupTimerDelay);
    GCWatcher.registerAction(new GCAction() {
      @Override
      public void takeAction() throws Exception {
        stopAllQueriesForBackPressure();
      }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.