Changeset 3489512


Ignore:
Timestamp:
Oct 2, 2010 3:07:35 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
333f806
Parents:
6100c79
Message:

client cleanups

Location:
core/java/src/net/i2p/client
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/client/HandlerImpl.java

    r6100c79 r3489512  
    1919 */
    2020abstract class HandlerImpl implements I2CPMessageHandler {
    21     protected Log _log;
    22     private int _type;
    23     protected I2PAppContext _context;
     21    protected final Log _log;
     22    private final int _type;
     23    protected final I2PAppContext _context;
    2424
    2525    public HandlerImpl(I2PAppContext context, int type) {
  • core/java/src/net/i2p/client/MessageState.java

    r6100c79 r3489512  
    3838        _nonce = nonce;
    3939        _prefix = prefix + "[" + _stateId + "]: ";
    40         _id = null;
    4140        _receivedStatus = new HashSet();
    42         _cancelled = false;
    43         _key = null;
    44         _newKey = null;
    45         _tags = null;
    46         _to = null;
    4741        _created = ctx.clock().now();
    4842        //ctx.statManager().createRateStat("i2cp.checkStatusTime", "how long it takes to go through the states", "i2cp", new long[] { 60*1000 });
  • core/java/src/net/i2p/client/SessionIdleTimer.java

    r6100c79 r3489512  
    1919 * @author zzz
    2020 */
    21 public class SessionIdleTimer implements SimpleTimer.TimedEvent {
     21class SessionIdleTimer implements SimpleTimer.TimedEvent {
    2222    public static final long MINIMUM_TIME = 5*60*1000;
    2323    private static final long DEFAULT_REDUCE_TIME = 20*60*1000;
    2424    private static final long DEFAULT_CLOSE_TIME = 30*60*1000;
    2525    private final static Log _log = new Log(SessionIdleTimer.class);
    26     private I2PAppContext _context;
    27     private I2PSessionImpl _session;
     26    private final I2PAppContext _context;
     27    private final I2PSessionImpl _session;
    2828    private boolean _reduceEnabled;
    2929    private int _reduceQuantity;
     
    3737     *  reduce, shutdown, or both must be true
    3838     */
    39     /* FIXME Exporting non-public type through public API FIXME */
    4039    public SessionIdleTimer(I2PAppContext context, I2PSessionImpl session, boolean reduce, boolean shutdown) {
    4140        _context = context;
Note: See TracChangeset for help on using the changeset viewer.