Package net.i2p.router.transport.udp
Class DummyThrottle
- java.lang.Object
-
- net.i2p.router.transport.udp.DummyThrottle
-
- All Implemented Interfaces:
OutboundMessageFragments.ActiveThrottle
class DummyThrottle extends Object implements OutboundMessageFragments.ActiveThrottle
Since the TimedWeightedPriorityMessageQueue.add() was disabled by jrandom in UDPTransport.java on 2006-02-19, and the choke/unchoke was disabled at the same time, all of TWPMQ is pointless, so just do this for now. It appears from his comments that it was a lock contention issue, so perhaps TWPMQ can be converted to concurrent and re-enabled.- Since:
- 0.7.12
-
-
Constructor Summary
Constructors Constructor Description DummyThrottle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
choke(Hash peer)
boolean
isChoked(Hash peer)
void
unchoke(Hash peer)
-
-
-
Method Detail
-
choke
public void choke(Hash peer)
- Specified by:
choke
in interfaceOutboundMessageFragments.ActiveThrottle
-
unchoke
public void unchoke(Hash peer)
- Specified by:
unchoke
in interfaceOutboundMessageFragments.ActiveThrottle
-
isChoked
public boolean isChoked(Hash peer)
- Specified by:
isChoked
in interfaceOutboundMessageFragments.ActiveThrottle
-
-