Changeset 916e328


Ignore:
Timestamp:
Nov 24, 2012 1:55:47 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1d3bbfd
Parents:
fe02145
Message:

javadoc, volatile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java

    rfe02145 r916e328  
    4343    private final BuildHandler _handler;
    4444    private final TunnelPeerSelector _clientPeerSelector;
    45     private boolean _isShutdown;
     45    private volatile boolean _isShutdown;
    4646    private final int _numHandlerThreads;
    47     private static final long[] RATES = { 60*1000, 10*60*1000l, 60*60*1000l };
    4847
    4948    private static final int MIN_KBPS_TWO_HANDLERS = 512;
     
    8483       
    8584        // The following are for TestJob
     85        long[] RATES = { 60*1000, 10*60*1000l, 60*60*1000l };
    8686        ctx.statManager().createRequiredRateStat("tunnel.testFailedTime", "Time for tunnel test failure (ms)", "Tunnels",
    8787                                         RATES);
     
    101101   
    102102    /**
    103      * Pick a random inbound exploratory tunnel
     103     * Pick a random inbound exploratory tunnel.
     104     * Warning - selectInboundExploratoryTunnel(Hash) is preferred.
    104105     *
    105106     * @return null if none
     
    116117   
    117118    /**
    118      * Pick a random inbound tunnel from the given destination's pool
     119     * Pick a random inbound tunnel from the given destination's pool.
     120     * Warning - selectOutboundTunnel(Hash, Hash) is preferred.
    119121     *
    120122     * @param destination if null, returns inbound exploratory tunnel
     
    134136   
    135137    /**
    136      * Pick a random outbound exploratory tunnel
     138     * Pick a random outbound exploratory tunnel.
     139     * Warning - selectOutboundExploratoryTunnel(Hash) is preferred.
    137140     *
    138141     * @return null if none
     
    149152   
    150153    /**
    151      * Pick a random outbound tunnel from the given destination's pool
     154     * Pick a random outbound tunnel from the given destination's pool.
     155     * Warning - selectOutboundTunnel(Hash, Hash) is preferred.
    152156     *
    153157     * @param destination if null, returns outbound exploratory tunnel
     
    365369        setSettings(_clientInboundPools, client, settings);
    366370    }
     371
    367372    public void setOutboundSettings(Hash client, TunnelPoolSettings settings) {
    368373        setSettings(_clientOutboundPools, client, settings);
     
    545550        out.add(_outboundExploratory);
    546551    }
     552
    547553    void tunnelFailed() { _executor.repoll(); }
     554
    548555    BuildExecutor getExecutor() { return _executor; }
     556
    549557    boolean isShutdown() { return _isShutdown; }
    550558
Note: See TracChangeset for help on using the changeset viewer.