|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.transport.TransportBid
public class TransportBid
Provide a bid for how much it would "cost" to transfer a message of a particular peer
Constructor Summary | |
---|---|
TransportBid()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransportBid()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |