java.lang.Object
net.i2p.router.transport.TransportBid
net.i2p.router.transport.ntcp.NTCPTransport.SharedBid
- Enclosing class:
NTCPTransport
Cache the bid to reduce object churn.
Field Summary
Fields inherited from class TransportBid
TRANSIENT_FAILModifier and TypeFieldDescriptionstatic final intSentinel cost a transport bids when it cannot deliver the message right now.Constructor Summary
ConstructorsMethod Summary
All MethodsMethods inherited from class TransportBid
getLatencyMs, setLatencyMs, setTransportModifier and TypeMethodDescriptionintHow long this transport thinks it would take to send the message This is the actual bid value, lower is better, and it doesn't really have anything to do with latency.voidsetLatencyMs(int milliseconds) The latency bid value in milliseconds.voidsetTransport(Transport transport) The transport that offered this bid.
Constructor Details
SharedBid
public SharedBid(int ms) Bid for this transport with a fixed latency.- Parameters:
ms- the latency of this bid in milliseconds
Method Details
getTransport
The transport this bid is for.- Overrides:
getTransportin classTransportBid- Returns:
- the enclosing
NTCPTransportinstance
toString