Package com.subgraph.orchid.circuits.CircuitManagerImpl

Examples of com.subgraph.orchid.circuits.CircuitManagerImpl.CircuitFilter


    final OpenExitStreamTask task = new OpenExitStreamTask(circuit, exitRequest);
    executor.execute(task);
  }

  private void expireOldCircuits() {
    final Set<Circuit> circuits = circuitManager.getCircuitsByFilter(new CircuitFilter() {

      public boolean filter(Circuit circuit) {
        return !circuit.isMarkedForClose() && circuit.getSecondsDirty() > MAX_CIRCUIT_DIRTINESS;
      }
    });
View Full Code Here


    executor.execute(task);
    circuitManager.incrementPendingInternalCircuitCount();
  }
 
  private int countCircuitsSupportingTarget(final ExitTarget target, final boolean needClean) {
    final CircuitFilter filter = new CircuitFilter() {
      public boolean filter(Circuit circuit) {
        if(!(circuit instanceof ExitCircuit)) {
          return false;
        }
        final ExitCircuit ec = (ExitCircuit) circuit;
View Full Code Here

TOP

Related Classes of com.subgraph.orchid.circuits.CircuitManagerImpl.CircuitFilter

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.