java.lang.Object
net.i2p.router.transport.TransportBid
net.i2p.router.transport.udp.UDPTransport.SharedBid
- Enclosing class:
UDPTransport
A bid shared by all peers in one class, cached 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 MethodsModifier and TypeMethodDescriptionSpecifies the transport that offered this bid.toString()String representation.Methods 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) Latency ms.- Parameters:
ms- the bid latency in milliseconds
Method Details
getTransport
Description copied from class:TransportBidSpecifies the transport that offered this bid.- Overrides:
getTransportin classTransportBid- Returns:
- the transport making the bid, or null if not yet recorded
toString