Package net.i2p.router.transport
Interface FIFOBandwidthLimiter.Request
- All Superinterfaces:
PQEntry
- Enclosing class:
FIFOBandwidthLimiter
A bandwidth request, either inbound or outbound.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
we no longer want the data requested (the connection closed)void
Only supported if the request is not satisfiedboolean
was this request aborted?int
how many bytes were requested and haven't yet been allocated?long
when was the request made?int
how many bytes were requested?void
void
Block until we are allocated some more bytes.Methods inherited from interface net.i2p.router.util.PQEntry
getPriority, getSeqNum, setSeqNum
-
Method Details
-
getRequestTime
long getRequestTime()when was the request made? -
getTotalRequested
int getTotalRequested()how many bytes were requested? -
getPendingRequested
int getPendingRequested()how many bytes were requested and haven't yet been allocated? -
waitForNextAllocation
void waitForNextAllocation()Block until we are allocated some more bytes. May return without allocating. Check getPendingRequested() > 0 in a loop. -
abort
void abort()we no longer want the data requested (the connection closed) -
getAborted
boolean getAborted()was this request aborted? -
setCompleteListener
-
attach
Only supported if the request is not satisfied -
attachment
Object attachment() -
getCompleteListener
FIFOBandwidthLimiter.CompleteListener getCompleteListener()
-