|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChunkQueue
A generic interface for queues of Chunks. Differs from a normal queue interface primarily by having collect().
| Method Summary | |
|---|---|
void |
add(Chunk chunk)
Add a chunk to the queue, blocking if queue is full. |
void |
collect(List<Chunk> chunks,
int count)
Return at least one, and no more than count, Chunks into chunks. |
int |
size()
Return an approximation of the number of chunks in the queue currently. |
| Method Detail |
|---|
void add(Chunk chunk)
throws InterruptedException
add in interface ChunkReceiverchunk -
InterruptedException - if thread is interrupted while blocking
void collect(List<Chunk> chunks,
int count)
throws InterruptedException
InterruptedExceptionint size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||