Changeset 38b0927


Ignore:
Timestamp:
Aug 20, 2012 12:13:26 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
34c0958
Parents:
715bde5
Message:
File:
1 edited

Legend:

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

    r715bde5 r38b0927  
    1313
    1414/**
    15  * Contains the state of a payload message being sent to a peer
     15 * Contains the state of a payload message being sent to a peer.
    1616 *
     17 * This is mostly unused. See sendNoEffort vs. sendBestEffort in I2PSessionImpl2.
     18 * TODO delete altogether? This is really bad.
    1719 */
    1820class MessageState {
    19     private I2PAppContext _context;
    20     private final static Log _log = new Log(MessageState.class);
    21     private long _nonce;
    22     private String _prefix;
     21    private final I2PAppContext _context;
     22    private final Log _log;
     23    private final long _nonce;
     24    private final String _prefix;
    2325    private MessageId _id;
    24     private final Set _receivedStatus;
     26    private final Set<Integer> _receivedStatus;
    2527    private SessionKey _key;
    2628    private SessionKey _newKey;
     
    2830    private Destination _to;
    2931    private boolean _cancelled;
    30     private long _created;
     32    private final long _created;
    3133
    3234    private static long __stateId = 0;
     
    3638        _stateId = ++__stateId;
    3739        _context = ctx;
     40        _log = ctx.logManager().getLog(MessageState.class);
    3841        _nonce = nonce;
    3942        _prefix = prefix + "[" + _stateId + "]: ";
     
    6265    }
    6366
     67    /** @deprecated unused */
    6468    public void setKey(SessionKey key) {
    6569        if (_log.shouldLog(Log.DEBUG))
     
    6872    }
    6973
     74    /** @deprecated unused */
    7075    public SessionKey getKey() {
    7176        return _key;
    7277    }
    7378
     79    /** @deprecated unused */
    7480    public void setNewKey(SessionKey key) {
    7581        _newKey = key;
    7682    }
    7783
     84    /** @deprecated unused */
    7885    public SessionKey getNewKey() {
    7986        return _newKey;
    8087    }
    8188
     89    /** @deprecated unused */
    8290    public void setTags(Set tags) {
    8391        _tags = tags;
    8492    }
    8593
     94    /** @deprecated unused */
    8695    public Set getTags() {
    8796        return _tags;
     
    92101    }
    93102
     103    /** @deprecated unused */
    94104    public Destination getTo() {
    95105        return _to;
     
    257267    }
    258268
    259     /** true if the given status (or an equivilant) was received */
     269    /** #return true if the given status (or an equivalent) was received */
    260270    public boolean received(int status) {
    261271        synchronized (_receivedStatus) {
Note: See TracChangeset for help on using the changeset viewer.