Package net.i2p.router.transport
Class TransportBid
java.lang.Object
net.i2p.router.transport.TransportBid
Provide a bid for how much it would "cost" to transfer a message of a
particular peer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
How 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.Specifies the transport that offered this bidvoid
setLatencyMs
(int milliseconds) void
setTransport
(Transport transport)
-
Field Details
-
TRANSIENT_FAIL
public static final int TRANSIENT_FAIL- See Also:
-
-
Constructor Details
-
TransportBid
public TransportBid()
-
-
Method Details
-
getLatencyMs
public int getLatencyMs()How 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. -
setLatencyMs
public void setLatencyMs(int milliseconds) -
getTransport
Specifies the transport that offered this bid -
setTransport
-