Changeset c9002b32


Ignore:
Timestamp:
Aug 27, 2018 6:36:49 AM (2 years ago)
Author:
slumlord <slumlord@…>
Branches:
master
Children:
48c787b
Parents:
e64ad7c
Message:

#2293 - Use CachedIteratorCollection? in PeerState?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/udp/PeerState.java

    re64ad7c rc9002b32  
    1818import net.i2p.router.OutNetMessage;
    1919import net.i2p.router.RouterContext;
    20 import net.i2p.router.util.CachedIteratorArrayList;
     20import net.i2p.router.util.CachedIteratorCollection;
    2121import net.i2p.router.util.CoDelPriorityBlockingQueue;
    2222import net.i2p.router.util.PriBlockingQueue;
     
    211211     *  although there could be some that have not been sent yet.
    212212     */
    213     private final List<OutboundMessageState> _outboundMessages;
     213    private final CachedIteratorCollection<OutboundMessageState> _outboundMessages;
    214214
    215215    /**
     
    371371        _rttDeviation = _rtt;
    372372        _inboundMessages = new HashMap<Long, InboundMessageState>(8);
    373         _outboundMessages = new CachedIteratorArrayList<OutboundMessageState>(32);
     373        _outboundMessages = new CachedIteratorCollection<OutboundMessageState>();
    374374        //_outboundQueue = new CoDelPriorityBlockingQueue(ctx, "UDP-PeerState", 32);
    375375        _outboundQueue = new PriBlockingQueue<OutboundMessageState>(ctx, "UDP-PeerState", 32);
Note: See TracChangeset for help on using the changeset viewer.