net.i2p.router.transport
public class TransportBid extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TRANSIENT_FAIL |
Constructor and Description |
---|
TransportBid() |
Modifier and Type | Method and Description |
---|---|
int |
getBandwidthBytes()
How many bytes the transport thinks it would need to send to transfer the
message successfully
|
long |
getExpiration()
Specifies how long this bid is "good for"
|
int |
getLatencyMs()
How long this transport thinks it would take to send the message
|
int |
getMessageSize()
How large the message in question is, in bytes
|
RouterInfo |
getRouter()
Router to which the message is to be sent
|
Transport |
getTransport()
Specifies the transport that offered this bid
|
void |
setBandwidthBytes(int numBytes) |
void |
setExpiration(long expirationDate) |
void |
setLatencyMs(int milliseconds) |
void |
setMessageSize(int numBytes) |
void |
setRouter(RouterInfo router) |
void |
setTransport(Transport transport) |
public static final int TRANSIENT_FAIL
public int getLatencyMs()
public void setLatencyMs(int milliseconds)
public int getBandwidthBytes()
public void setBandwidthBytes(int numBytes)
public int getMessageSize()
public void setMessageSize(int numBytes)
public RouterInfo getRouter()
public void setRouter(RouterInfo router)
public long getExpiration()
public void setExpiration(long expirationDate)
public Transport getTransport()
public void setTransport(Transport transport)